Skip to content

Commit

Permalink
fix: conditionally run preinstall hook
Browse files Browse the repository at this point in the history
  • Loading branch information
cloydlau committed Sep 7, 2023
1 parent 6e09a62 commit 6e8bdd3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"test-unit": "vitest run",
"coverage": "vitest run --coverage",
"release": "esno ./scripts/release.mts",
"preinstall": "npx only-allow pnpm",
"preinstall": "node -e \"if (process.env.INIT_CWD === process.cwd()) { process.exit(1) }\" || npx only-allow pnpm",
"postinstall": "node -e \"if (process.env.INIT_CWD === process.cwd()) { process.exit(1) }\" || npx simple-git-hooks"
},
"peerDependencies": {
Expand Down

0 comments on commit 6e8bdd3

Please sign in to comment.