Commit 839271d70a334df9a423b64570b29da90b0cfa7b

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

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

.husky/commit-msg
@@ -3,4 +3,6 @@ @@ -3,4 +3,6 @@
3 # shellcheck source=./_/husky.sh 3 # shellcheck source=./_/husky.sh
4 . "$(dirname "$0")/_/husky.sh" 4 . "$(dirname "$0")/_/husky.sh"
5 5
  6 +PATH="/usr/local/bin:$PATH"
  7 +
6 npx --no-install commitlint --edit "$1" 8 npx --no-install commitlint --edit "$1"
.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