Skip to content

Commit 09089fb

Browse files
author
chufan
committed
perf: 锁定版本Node>18,scripts钩子分配权限
1 parent 2766c2a commit 09089fb

File tree

1 file changed

+6
-11
lines changed

1 file changed

+6
-11
lines changed

package.json

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,11 @@
44
"version": "0.0.2-alpha.2",
55
"packageManager": "[email protected]",
66
"engines": {
7-
"node": ">=14.20.1"
7+
"node": "^18.x",
8+
"pnpm": ">=7.2.1"
89
},
910
"scripts": {
11+
"preinstall": "chmod +x ./scripts/*",
1012
"prepare": "rm -f .husky/pre-commit && husky install && npx husky add .husky/pre-commit \"./scripts/lint --fix\" && chmod +x .husky/pre-commit",
1113
"dev": "vuepress dev docs",
1214
"build": "vuepress build docs",
@@ -15,18 +17,11 @@
1517
"clean": "find . -name \"node_modules\" -type d -exec rm -rf '{}' + "
1618
},
1719
"scripts-info": {
20+
"preinstall": "在安装依赖前分配脚本权限",
21+
"postinstall": "在安装依赖后编译markdown文档转化为思维导图",
1822
"prepare": "安装依赖预执行脚本",
23+
"build:mark-map": "./scripts/mark-map",
1924
"dev": "本地启动项目",
20-
"build": "构建、打包",
21-
"build:proxy": "构建、打包,支持项目名代理,使用第三方托管平台",
22-
"image": "容器打包、构建镜像",
23-
"image:faster": "本地build后,快速构建镜像",
24-
"deploy:ali": "部署到阿里云服务器",
25-
"deploy:github": "部署到github平台,集成ci",
26-
"version:alpha": "alpha测试版号更新,基于next分之操作",
27-
"version:patch": "稳定版号更新,基于master分支操作",
28-
"lint": "eslint校验代码,指出异常",
29-
"lintfix": "格式化代码,自动化处理异常",
3025
"clean": "快速删除本地依赖"
3126
},
3227
"devDependencies": {

0 commit comments

Comments
 (0)