diff --git a/package.json b/package.json index b0c1a82d2a7b9a..af32e9114aa4d1 100644 --- a/package.json +++ b/package.json @@ -5,6 +5,12 @@ "engines": { "node": "^20.19.0 || >=22.12.0" }, + "devEngines": { + "packageManager": { + "name": "pnpm", + "onFail": "error" + } + }, "homepage": "https://vite.dev/", "repository": { "type": "git", @@ -18,7 +24,6 @@ "vite" ], "scripts": { - "preinstall": "npx only-allow pnpm", "postinstall": "simple-git-hooks", "format": "prettier --write --cache .", "lint": "eslint --cache .",