Commit 839271d70a334df9a423b64570b29da90b0cfa7b
Committed by
GitHub
1 parent
768fadbf
fix: 解决mac系统提交代码环境变量报错问题 (#2286)
Showing
2 changed files
with
4 additions
and
0 deletions
.husky/commit-msg
.husky/pre-commit
@@ -4,5 +4,7 @@ | @@ -4,5 +4,7 @@ | ||
4 | 4 | ||
5 | [ -n "$CI" ] && exit 0 | 5 | [ -n "$CI" ] && exit 0 |
6 | 6 | ||
7 | +PATH="/usr/local/bin:$PATH" | ||
8 | + | ||
7 | # Format and submit code according to lintstagedrc.js configuration | 9 | # Format and submit code according to lintstagedrc.js configuration |
8 | npm run lint:lint-staged | 10 | npm run lint:lint-staged |