Skip to content

Commit 0e1781d

Browse files
committed
chore: 在 package.json 中添加 preinstall 脚本以限制只允许使用 pnpm
1 parent 82914f6 commit 0e1781d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@
2626
"test": "vitest",
2727
"coverage": "vitest run --coverage",
2828
"clean": "turbo clean --filter=./packages/**",
29-
"typecheck": "tsc --noEmit"
29+
"typecheck": "tsc --noEmit",
30+
"preinstall": "npx only-allow pnpm"
3031
},
3132
"dependencies": {
3233
"happy-dom": "^8.9.0"

0 commit comments

Comments
 (0)