Skip to content

Commit 70a0a43

Browse files
committed
make "pnpm tsc" NOT "hang" with watch, to be more AI friendly
1 parent bdc64b4 commit 70a0a43

File tree

16 files changed

+4
-27
lines changed

16 files changed

+4
-27
lines changed

src/packages/api-client/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
"scripts": {
77
"preinstall": "npx only-allow pnpm",
88
"build": "../node_modules/.bin/tsc --build",
9-
"tsc": "../node_modules/.bin/tsc --watch --pretty --preserveWatchOutput",
109
"depcheck": "pnpx depcheck --ignores @cocalc/api-client "
1110
},
1211
"files": ["dist/**", "bin/**", "README.md", "package.json"],

src/packages/backend/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
"preinstall": "npx only-allow pnpm",
1919
"clean": "rm -rf dist node_modules",
2020
"build": "pnpm exec tsc --build",
21-
"tsc": "pnpm exec tsc --watch --pretty --preserveWatchOutput",
2221
"test": "pnpm exec jest --forceExit",
2322
"test-conat": " pnpm exec jest --forceExit conat",
2423
"testp": "pnpm exec jest --forceExit",

src/packages/comm/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
"scripts": {
1818
"preinstall": "npx only-allow pnpm",
1919
"build": "../node_modules/.bin/tsc --build",
20-
"tsc": "../node_modules/.bin/tsc --watch --pretty --preserveWatchOutput",
2120
"depcheck": "pnpx depcheck --ignores @types/node"
2221
},
2322
"author": "SageMath, Inc.",

src/packages/conat/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
"preinstall": "npx only-allow pnpm",
2121
"build": "pnpm exec tsc --build",
2222
"clean": "rm -rf dist node_modules",
23-
"tsc": "pnpm exec tsc --watch --pretty --preserveWatchOutput",
2423
"test": "pnpm exec jest",
2524
"depcheck": "pnpx depcheck --ignores events,bufferutil,utf-8-validate"
2625
},

src/packages/database/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@
4444
"preinstall": "npx only-allow pnpm",
4545
"build": "../node_modules/.bin/tsc --build && coffee -c -o dist/ ./",
4646
"clean": "rm -rf dist",
47-
"tsc": "../node_modules/.bin/tsc --watch --pretty --preserveWatchOutput",
4847
"test": "pnpm exec jest --forceExit --runInBand",
4948
"depcheck": "pnpx depcheck | grep -Ev '\\.coffee|coffee$'",
5049
"prepublishOnly": "pnpm test"

src/packages/file-server/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
"scripts": {
1010
"preinstall": "npx only-allow pnpm",
1111
"build": "pnpm exec tsc --build",
12-
"tsc": "pnpm exec tsc --watch --pretty --preserveWatchOutput",
1312
"test": "pnpm exec jest",
1413
"depcheck": "pnpx depcheck",
1514
"clean": "rm -rf node_modules dist"

src/packages/hub/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@
6363
"hub-docker-dev": "export DEBUG=${DEBUG:='cocalc:*,-cocalc:silly:*'} && COCALC_DOCKER=true NODE_ENV=development PROJECTS=/projects/[project_id] PORT=443 NODE_OPTIONS='--max_old_space_size=8000 --enable-source-maps --trace-warnings --inspect' cocalc-hub-server --mode=multi-user --all --hostname=0.0.0.0 --https-key=/projects/conf/cert/key.pem --https-cert=/projects/conf/cert/cert.pem",
6464
"hub-docker-prod": "export DEBUG=${DEBUG:='cocalc:*,-cocalc:silly:*'} && COCALC_DOCKER=true NODE_ENV=production PROJECTS=/projects/[project_id] PORT=443 NODE_OPTIONS='--max_old_space_size=8000 --enable-source-maps' cocalc-hub-server --mode=multi-user --all --hostname=0.0.0.0 --https-key=/projects/conf/cert/key.pem --https-cert=/projects/conf/cert/cert.pem",
6565
"hub-docker-prod-nossl": "export DEBUG=${DEBUG:='cocalc:*,-cocalc:silly:*'} && COCALC_DOCKER=true NODE_ENV=production PROJECTS=/projects/[project_id] PORT=80 NODE_OPTIONS='--max_old_space_size=8000 --enable-source-maps' cocalc-hub-server --mode=multi-user --all --hostname=0.0.0.0",
66-
"tsc": "tsc --watch --pretty --preserveWatchOutput",
6766
"test": "jest dist/",
6867
"depcheck": "pnpx depcheck | grep -Ev '\\.coffee|coffee$'",
6968
"prepublishOnly": "test"

src/packages/jupyter/package.json

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -24,20 +24,11 @@
2424
"build": "../node_modules/.bin/tsc --build",
2525
"clean": "rm -rf node_modules dist",
2626
"test": "pnpm exec jest --forceExit --maxWorkers=1",
27-
"depcheck": "pnpx depcheck",
28-
"tsc": "../node_modules/.bin/tsc --watch --pretty --preserveWatchOutput"
27+
"depcheck": "pnpx depcheck"
2928
},
30-
"files": [
31-
"dist/**",
32-
"bin/**",
33-
"README.md",
34-
"package.json"
35-
],
29+
"files": ["dist/**", "bin/**", "README.md", "package.json"],
3630
"author": "SageMath, Inc.",
37-
"keywords": [
38-
"cocalc",
39-
"jupyter"
40-
],
31+
"keywords": ["cocalc", "jupyter"],
4132
"license": "SEE LICENSE.md",
4233
"dependencies": {
4334
"@cocalc/backend": "workspace:*",

src/packages/next/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
"build": "pnpm patch-openapi && pnpm exec next telemetry disable && rm -rf .next && pnpm build-dev && NODE_OPTIONS='--max_old_space_size=8000' next build && pnpm generate-openapi",
2929
"build-dev": "pnpm patch-openapi && pnpm exec next telemetry disable && rm -rf dist && pnpm software && ../node_modules/.bin/tsc --build tsconfig-dist.json && pnpm generate-openapi",
3030
"ts-build": "../node_modules/.bin/tsc --build tsconfig-dist.json",
31-
"tsc": "../node_modules/.bin/tsc --build tsconfig-dist.json -w --pretty --preserveWatchOutput ",
3231
"software": "bash ./software-inventory/setup.sh",
3332
"build-deps": "cd ../backend && pnpm build && cd ../util && pnpm build",
3433
"build-project": "pnpm build-deps && npx next telemetry disable && pnpm build-dev && NODE_OPTIONS='--max_old_space_size=8000' BASE_PATH=/$COCALC_PROJECT_ID/port/5000 next build",

src/packages/project/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@
6767
"preinstall": "npx only-allow pnpm",
6868
"start": "NODE_OPTIONS='--trace-warnings --unhandled-rejections=strict --enable-source-maps' pnpm cocalc-project",
6969
"build": "../node_modules/.bin/tsc --build",
70-
"tsc": "../node_modules/.bin/tsc --watch --pretty --preserveWatchOutput",
7170
"test": "COCALC_PROJECT_ID=812abe34-a382-4bd1-9071-29b6f4334f03 COCALC_USERNAME=user pnpm exec jest",
7271
"depcheck": "pnpx depcheck",
7372
"prepublishOnly": "pnpm test",

0 commit comments

Comments
 (0)