[san-cli]san-cli内husky配置问题 #572
hello-sunbaixin
started this conversation in
San CLI
Replies: 1 comment
-
san-cli 使用的 husky 的版本是 v4,所以先检查你使用的 husky 的版本是否也是 v4,因为 v4 以上的版本的使用方式和 v4 不一样,所以如果参照 san-cli 配置 husky,得用 v4。 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
"husky": {
"hooks": {
"pre-commit": "node scripts/test.js"
}
},
参照san-cli,其他项目配置husky并没有生效,像上面这样并没有执行脚本
Beta Was this translation helpful? Give feedback.
All reactions