Unverified 提交 839271d7 作者: 前端爱码士 提交者: GitHub

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

上级 768fadbf
...@@ -3,4 +3,6 @@ ...@@ -3,4 +3,6 @@
# shellcheck source=./_/husky.sh # shellcheck source=./_/husky.sh
. "$(dirname "$0")/_/husky.sh" . "$(dirname "$0")/_/husky.sh"
PATH="/usr/local/bin:$PATH"
npx --no-install commitlint --edit "$1" npx --no-install commitlint --edit "$1"
...@@ -4,5 +4,7 @@ ...@@ -4,5 +4,7 @@
[ -n "$CI" ] && exit 0 [ -n "$CI" ] && exit 0
PATH="/usr/local/bin:$PATH"
# Format and submit code according to lintstagedrc.js configuration # Format and submit code according to lintstagedrc.js configuration
npm run lint:lint-staged npm run lint:lint-staged
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论