Skip to content

Commit

Permalink
Chore(contributing): Use turbo watch mode + node --watch
Browse files Browse the repository at this point in the history
  • Loading branch information
SBoudrias committed Jul 21, 2024
1 parent 09a356c commit 5a4c709
Show file tree
Hide file tree
Showing 19 changed files with 5 additions and 29 deletions.
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ yarn tsc
yarn dev

# Then run the demos
yarn node packages/demo
yarn demo
```

(PR idea: Adding a watch mode for this flow would be great!)
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,12 @@
"scripts": {
"prepare": "husky && turbo tsc attw",
"setup": "node ./tools/setup-packages.mjs",
"pretest": "eslint . && turbo tsc",
"pretest": "eslint . && turbo tsc && yarn tsc:test",
"test": "vitest --run packages && node --test integration/**/*.test.*",
"dev": "turbo tsc:watch --concurrency 17",
"dev": "turbo watch tsc",
"demo": "node --watch-path=packages/ packages/demo/",
"tsc": "turbo tsc",
"tsc:test": "tsc -p tsconfig.test.json",
"tsc:watch": "tsc -p tsconfig.test.json --watch"
"tsc:test": "tsc -p tsconfig.test.json"
},
"repository": {
"type": "git",
Expand Down
1 change: 0 additions & 1 deletion packages/checkbox/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@
"tsc": "yarn run tsc:esm && yarn run tsc:cjs",
"tsc:esm": "rm -rf dist/esm && tsc -p ./tsconfig.json",
"tsc:cjs": "rm -rf dist/cjs && tsc -p ./tsconfig.cjs.json && node ../../tools/fix-ext.mjs",
"tsc:watch": "tsc -p ./tsconfig.json --watch",
"attw": "attw --pack"
},
"publishConfig": {
Expand Down
1 change: 0 additions & 1 deletion packages/confirm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@
"tsc": "yarn run tsc:esm && yarn run tsc:cjs",
"tsc:esm": "rm -rf dist/esm && tsc -p ./tsconfig.json",
"tsc:cjs": "rm -rf dist/cjs && tsc -p ./tsconfig.cjs.json && node ../../tools/fix-ext.mjs",
"tsc:watch": "tsc -p ./tsconfig.json --watch",
"attw": "attw --pack"
},
"publishConfig": {
Expand Down
1 change: 0 additions & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@
"tsc": "yarn run tsc:esm && yarn run tsc:cjs",
"tsc:esm": "rm -rf dist/esm && tsc -p ./tsconfig.json",
"tsc:cjs": "rm -rf dist/cjs && tsc -p ./tsconfig.cjs.json && node ../../tools/fix-ext.mjs",
"tsc:watch": "tsc -p ./tsconfig.json --watch",
"attw": "attw --pack"
},
"publishConfig": {
Expand Down
1 change: 0 additions & 1 deletion packages/editor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@
"tsc": "yarn run tsc:esm && yarn run tsc:cjs",
"tsc:esm": "rm -rf dist/esm && tsc -p ./tsconfig.json",
"tsc:cjs": "rm -rf dist/cjs && tsc -p ./tsconfig.cjs.json && node ../../tools/fix-ext.mjs",
"tsc:watch": "tsc -p ./tsconfig.json --watch",
"attw": "attw --pack"
},
"publishConfig": {
Expand Down
1 change: 0 additions & 1 deletion packages/expand/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@
"tsc": "yarn run tsc:esm && yarn run tsc:cjs",
"tsc:esm": "rm -rf dist/esm && tsc -p ./tsconfig.json",
"tsc:cjs": "rm -rf dist/cjs && tsc -p ./tsconfig.cjs.json && node ../../tools/fix-ext.mjs",
"tsc:watch": "tsc -p ./tsconfig.json --watch",
"attw": "attw --pack"
},
"publishConfig": {
Expand Down
1 change: 0 additions & 1 deletion packages/figures/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@
"tsc": "yarn run tsc:esm && yarn run tsc:cjs",
"tsc:esm": "rm -rf dist/esm && tsc -p ./tsconfig.json",
"tsc:cjs": "rm -rf dist/cjs && tsc -p ./tsconfig.cjs.json && node ../../tools/fix-ext.mjs",
"tsc:watch": "tsc -p ./tsconfig.json --watch",
"attw": "attw --pack"
},
"engines": {
Expand Down
1 change: 0 additions & 1 deletion packages/input/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@
"tsc": "yarn run tsc:esm && yarn run tsc:cjs",
"tsc:esm": "rm -rf dist/esm && tsc -p ./tsconfig.json",
"tsc:cjs": "rm -rf dist/cjs && tsc -p ./tsconfig.cjs.json && node ../../tools/fix-ext.mjs",
"tsc:watch": "tsc -p ./tsconfig.json --watch",
"attw": "attw --pack"
},
"publishConfig": {
Expand Down
1 change: 0 additions & 1 deletion packages/inquirer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@
"tsc": "yarn run tsc:esm && yarn run tsc:cjs",
"tsc:esm": "rm -rf dist/esm && tsc -p ./tsconfig.json",
"tsc:cjs": "rm -rf dist/cjs && tsc -p ./tsconfig.cjs.json && node ../../tools/fix-ext.mjs",
"tsc:watch": "tsc -p ./tsconfig.json --watch",
"attw": "attw --pack"
},
"exports": {
Expand Down
1 change: 0 additions & 1 deletion packages/number/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@
"tsc": "yarn run tsc:esm && yarn run tsc:cjs",
"tsc:esm": "rm -rf dist/esm && tsc -p ./tsconfig.json",
"tsc:cjs": "rm -rf dist/cjs && tsc -p ./tsconfig.cjs.json && node ../../tools/fix-ext.mjs",
"tsc:watch": "tsc -p ./tsconfig.json --watch",
"attw": "attw --pack"
},
"publishConfig": {
Expand Down
1 change: 0 additions & 1 deletion packages/password/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@
"tsc": "yarn run tsc:esm && yarn run tsc:cjs",
"tsc:esm": "rm -rf dist/esm && tsc -p ./tsconfig.json",
"tsc:cjs": "rm -rf dist/cjs && tsc -p ./tsconfig.cjs.json && node ../../tools/fix-ext.mjs",
"tsc:watch": "tsc -p ./tsconfig.json --watch",
"attw": "attw --pack"
},
"publishConfig": {
Expand Down
1 change: 0 additions & 1 deletion packages/prompts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@
"tsc": "yarn run tsc:esm && yarn run tsc:cjs",
"tsc:esm": "rm -rf dist/esm && tsc -p ./tsconfig.json",
"tsc:cjs": "rm -rf dist/cjs && tsc -p ./tsconfig.cjs.json && node ../../tools/fix-ext.mjs",
"tsc:watch": "tsc -p ./tsconfig.json --watch",
"attw": "attw --pack"
},
"engines": {
Expand Down
1 change: 0 additions & 1 deletion packages/rawlist/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@
"tsc": "yarn run tsc:esm && yarn run tsc:cjs",
"tsc:esm": "rm -rf dist/esm && tsc -p ./tsconfig.json",
"tsc:cjs": "rm -rf dist/cjs && tsc -p ./tsconfig.cjs.json && node ../../tools/fix-ext.mjs",
"tsc:watch": "tsc -p ./tsconfig.json --watch",
"attw": "attw --pack"
},
"publishConfig": {
Expand Down
1 change: 0 additions & 1 deletion packages/select/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@
"tsc": "yarn run tsc:esm && yarn run tsc:cjs",
"tsc:esm": "rm -rf dist/esm && tsc -p ./tsconfig.json",
"tsc:cjs": "rm -rf dist/cjs && tsc -p ./tsconfig.cjs.json && node ../../tools/fix-ext.mjs",
"tsc:watch": "tsc -p ./tsconfig.json --watch",
"attw": "attw --pack"
},
"publishConfig": {
Expand Down
1 change: 0 additions & 1 deletion packages/testing/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@
"tsc": "yarn run tsc:esm && yarn run tsc:cjs",
"tsc:esm": "rm -rf dist/esm && tsc -p ./tsconfig.json",
"tsc:cjs": "rm -rf dist/cjs && tsc -p ./tsconfig.cjs.json && node ../../tools/fix-ext.mjs",
"tsc:watch": "tsc -p ./tsconfig.json --watch",
"attw": "attw --pack"
},
"exports": {
Expand Down
1 change: 0 additions & 1 deletion packages/type/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@
"tsc": "yarn run tsc:esm && yarn run tsc:cjs",
"tsc:esm": "rm -rf dist/esm && tsc -p ./tsconfig.json",
"tsc:cjs": "rm -rf dist/cjs && tsc -p ./tsconfig.cjs.json && node ../../tools/fix-ext.mjs",
"tsc:watch": "tsc -p ./tsconfig.json --watch",
"attw": "attw --pack"
},
"engines": {
Expand Down
1 change: 0 additions & 1 deletion tools/setup-packages.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ paths.forEach(async (pkgPath) => {
'tsc:esm': 'rm -rf dist/esm && tsc -p ./tsconfig.json',
'tsc:cjs':
'rm -rf dist/cjs && tsc -p ./tsconfig.cjs.json && node ../../tools/fix-ext.mjs',
'tsc:watch': 'tsc -p ./tsconfig.json --watch',
attw: emitDeclaration ? 'attw --pack' : undefined,
};

Expand Down
8 changes: 0 additions & 8 deletions turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,6 @@
"dependsOn": ["^tsc"],
"outputs": ["dist/**"],
"inputs": ["$TURBO_DEFAULT$", "../../tools/fix-ext.mjs", "../../tsconfig.json"]
},
"tsc:watch": {
"cache": false,
"persistent": true
},
"//#tsc:watch": {
"cache": false,
"persistent": true
}
}
}

0 comments on commit 5a4c709

Please sign in to comment.