Skip to content

Commit 85ce6db

Browse files
author
Rivo Tüksammel
authoredJan 7, 2023
chore(env): cross platform preinstall CI check. (#4775)
1 parent e7e5c96 commit 85ce6db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"repository": "https://github.com/tanstack/query.git",
44
"scripts": {
55
"clean": "pnpm --filter \"./packages/**\" --parallel --no-bail run clean",
6-
"preinstall": "if [ \"$CI\" = \"true\" ]; then echo \"Skipping preinstall...\"; else npx -y only-allow pnpm; fi",
6+
"preinstall": "node -e \"if(process.env.CI == 'true') {console.log('Skipping preinstall...'); process.exit(1)}\" || npx -y only-allow pnpm",
77
"install:csb": "pnpm install --frozen-lockfile",
88
"test": "pnpm run test:ci",
99
"test:ci": "pnpm run test:format && pnpm run test:eslint && pnpm run test:jest --collectCoverage false && pnpm run typecheck",

0 commit comments

Comments
 (0)
Please sign in to comment.