mirror of
https://github.com/Tencent/tdesign-vue-next-starter.git
synced 2024-09-19 02:04:22 +08:00
fix: 修复husky可能找不到npx命令的问题 (#635)
This commit is contained in:
parent
33b9eaccf2
commit
93b349231e
|
@ -1,4 +1,8 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
. "$(dirname "$0")/_/husky.sh"
|
. "$(dirname "$0")/_/husky.sh"
|
||||||
|
|
||||||
npx --no-install commitlint -e $GIT_PARAMS
|
if [[ "$OS" == "Windows_NT" ]]; then
|
||||||
|
npx.cmd --no-install commitlint -e $GIT_PARAMS
|
||||||
|
else
|
||||||
|
npx --no-install commitlint -e $GIT_PARAMS
|
||||||
|
fi
|
||||||
|
|
|
@ -1,4 +1,8 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
. "$(dirname "$0")/_/husky.sh"
|
. "$(dirname "$0")/_/husky.sh"
|
||||||
|
|
||||||
npx lint-staged
|
if [[ "$OS" == "Windows_NT" ]]; then
|
||||||
|
npx.cmd lint-staged
|
||||||
|
else
|
||||||
|
npx lint-staged
|
||||||
|
fi
|
||||||
|
|
|
@ -3,4 +3,8 @@
|
||||||
[ -n "$CI" ] && exit 0
|
[ -n "$CI" ] && exit 0
|
||||||
. "$(dirname "$0")/_/husky.sh"
|
. "$(dirname "$0")/_/husky.sh"
|
||||||
|
|
||||||
exec < /dev/tty && npx git-cz --hook || true
|
if [[ "$OS" == "Windows_NT" ]]; then
|
||||||
|
exec < /dev/tty && npx.cmd git-cz --hook || true
|
||||||
|
else
|
||||||
|
exec < /dev/tty && npx git-cz --hook || true
|
||||||
|
fi
|
||||||
|
|
Loading…
Reference in New Issue
Block a user