Skip to content

Commit 3caa8a4

Browse files
committed
chore: replace devEngines with only-allow preinstall
devEngines.packageManager breaks pnpm commands that delegate to npm (pnpm version, pnpm pkg set, etc). Use the battle-tested only-allow approach instead (same as Vite, Vue, Astro).
1 parent b5efb2e commit 3caa8a4

1 file changed

Lines changed: 3 additions & 9 deletions

File tree

package.json

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@
3232
"test-cov": "vitest --coverage",
3333
"release": "pnpm build && lerna version patch && lerna publish from-package --contents dist",
3434
"lint": "eslint packages/*/src test",
35-
"lint:fix": "eslint packages/*/src test --fix"
35+
"lint:fix": "eslint packages/*/src test --fix",
36+
"preinstall": "npx only-allow pnpm"
3637
},
3738
"commitlint": {
3839
"extends": [
@@ -70,12 +71,5 @@
7071
"underscore": "^1.13.7",
7172
"vitest": "^4.1.4"
7273
},
73-
"packageManager": "pnpm@10.24.0",
74-
"devEngines": {
75-
"packageManager": {
76-
"name": "pnpm",
77-
"version": "10.x",
78-
"onFail": "error"
79-
}
80-
}
74+
"packageManager": "pnpm@10.24.0"
8175
}

0 commit comments

Comments
 (0)