Skip to content

Commit 038f1b7

Browse files
committed
feat: pnpm版本锁定9.6.0,增加only-allow配置约束pnpm
1 parent c5a558d commit 038f1b7

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

package.json

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,25 +12,17 @@
1212
"packageManager": "pnpm@9.6.0",
1313
"engines": {
1414
"node": ">=18.x",
15-
"pnpm": "9"
15+
"pnpm": "9.6.0"
1616
},
1717
"scripts": {
18-
"preinstall": "chmod +x ./scripts/*",
18+
"preinstall": "npx only-allow pnpm && chmod +x ./scripts/*",
1919
"prepare": "husky install",
2020
"clean": "npx fa clean --ignore-tips --dist --vite --all",
2121
"dev": "vuepress dev docs",
2222
"build": "vuepress build docs --clean-temp --clean-cache",
2323
"build:proxy": "PROXY_DOMAIN=true vuepress build docs --clean-temp --clean-cache",
2424
"deploy:vercel": "vercel --prod"
2525
},
26-
"scripts-info": {
27-
"preinstall": "在安装依赖前分配脚本权限",
28-
"postinstall": "在安装依赖后编译markdown文档转化为思维导图",
29-
"prepare": "安装依赖预执行脚本",
30-
"build:mark-map": "./scripts/mark-map",
31-
"dev": "本地启动项目",
32-
"clean": "快速删除本地依赖"
33-
},
3426
"devDependencies": {
3527
"@142vip/common": "^0.0.1-alpha.5",
3628
"@142vip/fairy-cli": "^0.0.3-alpha.10",

0 commit comments

Comments
 (0)