Skip to content

Commit 1ed40bb

Browse files
Add preinstall, tweak watch script
1 parent de6cdd1 commit 1ed40bb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@
55
"packageManager": "[email protected]",
66
"scripts": {
77
"clean": "npm exec --workspaces -c \"rm -rf build || true\"",
8+
"preinstall": "node -e \"if(process.env.CI == 'true') {console.log('Skipping preinstall...'); process.exit(1)}\" || npx -y only-allow pnpm",
89
"test": "(is-ci && npm run test:lib) || npm run test:dev",
910
"test:lib": "nx run-many -t test:lib",
10-
"test:lib:dev": "nx run-many -t test:lib:dev",
11+
"test:lib:dev": "pnpm test:lib && nx watch --all -- pnpm test:lib",
1112
"test:types": "nx run-many -t test:types",
1213
"build": "nx build root",
1314
"watch": "concurrently --kill-others \"rollup --config rollup.config.js -w\" \"tsc -b --watch\"",

0 commit comments

Comments
 (0)