Commit 839271d70a334df9a423b64570b29da90b0cfa7b

Authored by 前端爱码士
Committed by GitHub
1 parent 768fadbf

fix: 解决mac系统提交代码环境变量报错问题 (#2286)

.husky/commit-msg
... ... @@ -3,4 +3,6 @@
3 3 # shellcheck source=./_/husky.sh
4 4 . "$(dirname "$0")/_/husky.sh"
5 5  
  6 +PATH="/usr/local/bin:$PATH"
  7 +
6 8 npx --no-install commitlint --edit "$1"
... ...
.husky/pre-commit
... ... @@ -4,5 +4,7 @@
4 4  
5 5 [ -n "$CI" ] && exit 0
6 6  
  7 +PATH="/usr/local/bin:$PATH"
  8 +
7 9 # Format and submit code according to lintstagedrc.js configuration
8 10 npm run lint:lint-staged
... ...