mirror of https://github.com/vuejs/core.git
chore: update pnpm verification script (#7174)
This commit is contained in:
parent
595d20207d
commit
8a6d8fc8ac
|
@ -35,7 +35,7 @@
|
|||
"build-runtime-esm": "node scripts/build.js runtime reactivity shared -af esm-bundler && node scripts/build.js vue -f esm-bundler-runtime && node scripts/build.js vue -f esm-browser-runtime",
|
||||
"build-ssr-esm": "node scripts/build.js compiler-sfc server-renderer -f esm-browser",
|
||||
"build-sfc-playground-self": "cd packages/sfc-playground && npm run build",
|
||||
"preinstall": "node ./scripts/preinstall.js",
|
||||
"preinstall": "npx only-allow pnpm",
|
||||
"postinstall": "simple-git-hooks"
|
||||
},
|
||||
"simple-git-hooks": {
|
||||
|
|
|
@ -1,8 +0,0 @@
|
|||
// @ts-check
|
||||
if (!/pnpm/.test(process.env.npm_execpath || '')) {
|
||||
console.warn(
|
||||
`\u001b[33mThis repository requires using pnpm as the package manager ` +
|
||||
` for scripts to work properly.\u001b[39m\n`
|
||||
)
|
||||
process.exit(1)
|
||||
}
|
Loading…
Reference in New Issue