- 配置husky作为pre-commit钩子 - 添加构建验证脚本,提交前自动执行构建检查 - 防止构建失败的代码被提交到仓库 关联任务: 自动化构建门禁方案第一步
12 lines
172 B
JSON
12 lines
172 B
JSON
{
|
|
"dependencies": {
|
|
"axios": "^1.13.2",
|
|
"json-bigint": "^1.0.0"
|
|
},
|
|
"devDependencies": {
|
|
"husky": "^9.1.7"
|
|
},
|
|
"scripts": {
|
|
"prepare": "husky"
|
|
}
|
|
} |