Skip to content

Commit 3b1a107

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 bbd062c commit 3b1a107

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
@@ -16,7 +16,8 @@
1616
"lint": "pnpm lint:code",
1717
"lint:fix": "pnpm lint:code:fix",
1818
"lint:code": "eslint .",
19-
"lint:code:fix": "eslint . --fix"
19+
"lint:code:fix": "eslint . --fix",
20+
"preinstall": "npx only-allow pnpm"
2021
},
2122
"dependencies": {
2223
"@apify/docs-theme": "^1.0.243",
@@ -48,12 +49,5 @@
4849
"rimraf": "^6.0.0",
4950
"typescript": "^6.0.0"
5051
},
51-
"packageManager": "pnpm@10.24.0",
52-
"devEngines": {
53-
"packageManager": {
54-
"name": "pnpm",
55-
"version": "10.x",
56-
"onFail": "error"
57-
}
58-
}
52+
"packageManager": "pnpm@10.24.0"
5953
}

0 commit comments

Comments
 (0)