Skip to content

Commit 5a4c709

Browse files
committed
Chore(contributing): Use turbo watch mode + node --watch
1 parent 09a356c commit 5a4c709

19 files changed

Lines changed: 5 additions & 29 deletions

File tree

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ yarn tsc
6666
yarn dev
6767

6868
# Then run the demos
69-
yarn node packages/demo
69+
yarn demo
7070
```
7171

7272
(PR idea: Adding a watch mode for this flow would be great!)

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,12 +81,12 @@
8181
"scripts": {
8282
"prepare": "husky && turbo tsc attw",
8383
"setup": "node ./tools/setup-packages.mjs",
84-
"pretest": "eslint . && turbo tsc",
84+
"pretest": "eslint . && turbo tsc && yarn tsc:test",
8585
"test": "vitest --run packages && node --test integration/**/*.test.*",
86-
"dev": "turbo tsc:watch --concurrency 17",
86+
"dev": "turbo watch tsc",
87+
"demo": "node --watch-path=packages/ packages/demo/",
8788
"tsc": "turbo tsc",
88-
"tsc:test": "tsc -p tsconfig.test.json",
89-
"tsc:watch": "tsc -p tsconfig.test.json --watch"
89+
"tsc:test": "tsc -p tsconfig.test.json"
9090
},
9191
"repository": {
9292
"type": "git",

packages/checkbox/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@
7070
"tsc": "yarn run tsc:esm && yarn run tsc:cjs",
7171
"tsc:esm": "rm -rf dist/esm && tsc -p ./tsconfig.json",
7272
"tsc:cjs": "rm -rf dist/cjs && tsc -p ./tsconfig.cjs.json && node ../../tools/fix-ext.mjs",
73-
"tsc:watch": "tsc -p ./tsconfig.json --watch",
7473
"attw": "attw --pack"
7574
},
7675
"publishConfig": {

packages/confirm/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@
6464
"tsc": "yarn run tsc:esm && yarn run tsc:cjs",
6565
"tsc:esm": "rm -rf dist/esm && tsc -p ./tsconfig.json",
6666
"tsc:cjs": "rm -rf dist/cjs && tsc -p ./tsconfig.cjs.json && node ../../tools/fix-ext.mjs",
67-
"tsc:watch": "tsc -p ./tsconfig.json --watch",
6867
"attw": "attw --pack"
6968
},
7069
"publishConfig": {

packages/core/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@
7878
"tsc": "yarn run tsc:esm && yarn run tsc:cjs",
7979
"tsc:esm": "rm -rf dist/esm && tsc -p ./tsconfig.json",
8080
"tsc:cjs": "rm -rf dist/cjs && tsc -p ./tsconfig.cjs.json && node ../../tools/fix-ext.mjs",
81-
"tsc:watch": "tsc -p ./tsconfig.json --watch",
8281
"attw": "attw --pack"
8382
},
8483
"publishConfig": {

packages/editor/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@
6565
"tsc": "yarn run tsc:esm && yarn run tsc:cjs",
6666
"tsc:esm": "rm -rf dist/esm && tsc -p ./tsconfig.json",
6767
"tsc:cjs": "rm -rf dist/cjs && tsc -p ./tsconfig.cjs.json && node ../../tools/fix-ext.mjs",
68-
"tsc:watch": "tsc -p ./tsconfig.json --watch",
6968
"attw": "attw --pack"
7069
},
7170
"publishConfig": {

packages/expand/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@
6565
"tsc": "yarn run tsc:esm && yarn run tsc:cjs",
6666
"tsc:esm": "rm -rf dist/esm && tsc -p ./tsconfig.json",
6767
"tsc:cjs": "rm -rf dist/cjs && tsc -p ./tsconfig.cjs.json && node ../../tools/fix-ext.mjs",
68-
"tsc:watch": "tsc -p ./tsconfig.json --watch",
6968
"attw": "attw --pack"
7069
},
7170
"publishConfig": {

packages/figures/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@
5858
"tsc": "yarn run tsc:esm && yarn run tsc:cjs",
5959
"tsc:esm": "rm -rf dist/esm && tsc -p ./tsconfig.json",
6060
"tsc:cjs": "rm -rf dist/cjs && tsc -p ./tsconfig.cjs.json && node ../../tools/fix-ext.mjs",
61-
"tsc:watch": "tsc -p ./tsconfig.json --watch",
6261
"attw": "attw --pack"
6362
},
6463
"engines": {

packages/input/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@
6464
"tsc": "yarn run tsc:esm && yarn run tsc:cjs",
6565
"tsc:esm": "rm -rf dist/esm && tsc -p ./tsconfig.json",
6666
"tsc:cjs": "rm -rf dist/cjs && tsc -p ./tsconfig.cjs.json && node ../../tools/fix-ext.mjs",
67-
"tsc:watch": "tsc -p ./tsconfig.json --watch",
6867
"attw": "attw --pack"
6968
},
7069
"publishConfig": {

packages/inquirer/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@
6969
"tsc": "yarn run tsc:esm && yarn run tsc:cjs",
7070
"tsc:esm": "rm -rf dist/esm && tsc -p ./tsconfig.json",
7171
"tsc:cjs": "rm -rf dist/cjs && tsc -p ./tsconfig.cjs.json && node ../../tools/fix-ext.mjs",
72-
"tsc:watch": "tsc -p ./tsconfig.json --watch",
7372
"attw": "attw --pack"
7473
},
7574
"exports": {

0 commit comments

Comments
 (0)