Browse Source

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

pull/2294/head
前端爱码士 3 years ago
committed by GitHub
parent
commit
839271d70a
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      .husky/commit-msg
  2. 2
      .husky/pre-commit

2
.husky/commit-msg

@ -3,4 +3,6 @@
# shellcheck source=./_/husky.sh
. "$(dirname "$0")/_/husky.sh"
PATH="/usr/local/bin:$PATH"
npx --no-install commitlint --edit "$1"

2
.husky/pre-commit

@ -4,5 +4,7 @@
[ -n "$CI" ] && exit 0
PATH="/usr/local/bin:$PATH"
# Format and submit code according to lintstagedrc.js configuration
npm run lint:lint-staged

Loading…
Cancel
Save