From 839271d70a334df9a423b64570b29da90b0cfa7b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=89=8D=E7=AB=AF=E7=88=B1=E7=A0=81=E5=A3=AB?= Date: Wed, 19 Oct 2022 13:33:55 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=A7=A3=E5=86=B3mac=E7=B3=BB=E7=BB=9F?= =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81=E7=8E=AF=E5=A2=83=E5=8F=98?= =?UTF-8?q?=E9=87=8F=E6=8A=A5=E9=94=99=E9=97=AE=E9=A2=98=20(#2286)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .husky/commit-msg | 2 ++ .husky/pre-commit | 2 ++ 2 files changed, 4 insertions(+) diff --git a/.husky/commit-msg b/.husky/commit-msg index 567ff71f..274d2d8b 100755 --- a/.husky/commit-msg +++ b/.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" diff --git a/.husky/pre-commit b/.husky/pre-commit index 35f92427..f975aa7b 100755 --- a/.husky/pre-commit +++ b/.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