Skip to content

Commit 6ba649e

Browse files
committed
chore: fix pre-install script
1 parent 269b9de commit 6ba649e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"format": "prettier --experimental-cli --ignore-unknown '**/*' --write",
2121
"lint:fix:all": "pnpm run format && nx run-many --targets=lint --fix",
2222
"lint:fix": "nx affected --target=lint:fix --exclude=examples/**",
23-
"preinstall": "node -e \"if(process.env.CI == 'true') {console.log('Skipping preinstall...'); process.exit(1)}\" || npx -y only-allow pnpm",
23+
"preinstall": "node -e \"if (process.env.CI !== 'true') require('child_process').execSync('npx -y only-allow pnpm', { stdio: 'inherit' })\"",
2424
"size": "size-limit",
2525
"test": "pnpm run test:ci",
2626
"test:build": "nx affected --target=test:build",

0 commit comments

Comments
 (0)