Skip to content

Commit

Permalink
Prevent accidental use of yarn
Browse files Browse the repository at this point in the history
Since the port to pnpm, my muscle memory still reaches for `yarn`
sometimes, with not so great results.

https://pnpm.io/only-allow-pnpm

Signed-off-by: Tom Jakubowski <tom@prospective.dev>
  • Loading branch information
tomjakubowski authored and texodus committed May 28, 2024
1 parent abe82f2 commit 2668e31
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@
"webpack-dev-server": "^4.11.1"
},
"scripts": {
"preinstall": "npx only-allow pnpm",
"postinstall": "npm-run-all postinstall:*",
"postinstall:emsdk": "node tools/perspective-scripts/install_emsdk.mjs",
"postinstall:playwright": "npx playwright install --with-deps",
Expand Down

0 comments on commit 2668e31

Please sign in to comment.