Skip to content

Commit 93bad29

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 83b043b commit 93bad29

1 file changed

Lines changed: 3 additions & 9 deletions

File tree

website/package.json

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@
1919
"lint": "pnpm lint:code",
2020
"lint:fix": "pnpm lint:code:fix",
2121
"lint:code": "eslint .",
22-
"lint:code:fix": "eslint . --fix"
22+
"lint:code:fix": "eslint . --fix",
23+
"preinstall": "npx only-allow pnpm"
2324
},
2425
"dependencies": {
2526
"@apify/docusaurus-plugin-typedoc-api": "^5.1.0",
@@ -69,12 +70,5 @@
6970
"rimraf": "^6.0.0",
7071
"typescript": "^6.0.0"
7172
},
72-
"packageManager": "pnpm@10.24.0",
73-
"devEngines": {
74-
"packageManager": {
75-
"name": "pnpm",
76-
"version": "10.x",
77-
"onFail": "error"
78-
}
79-
}
73+
"packageManager": "pnpm@10.24.0"
8074
}

0 commit comments

Comments
 (0)