Skip to content

Commit a7196d9

Browse files
authored
chore: only allow pnpm using devEngines (#20201)
1 parent a3cd262 commit a7196d9

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

package.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@
55
"engines": {
66
"node": "^20.19.0 || >=22.12.0"
77
},
8+
"devEngines": {
9+
"packageManager": {
10+
"name": "pnpm",
11+
"onFail": "error"
12+
}
13+
},
814
"homepage": "https://vite.dev/",
915
"repository": {
1016
"type": "git",
@@ -18,7 +24,6 @@
1824
"vite"
1925
],
2026
"scripts": {
21-
"preinstall": "npx only-allow pnpm",
2227
"postinstall": "simple-git-hooks",
2328
"format": "prettier --write --cache .",
2429
"lint": "eslint --cache .",

0 commit comments

Comments
 (0)