You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
tnpm are largely used by Chinese developers in intranet enviroment, using them to install husky will cause $packageManager variable in .git/hooks/husky.local.sh equals to npminstall, thus hooks can't be trigger with following code in husky.sh
# Run husky-run with the package manager used to install Huskycase$packageManagerin"npm") run_command npx --no-install ;;
"pnpm") run_command pnpx --no-install ;;
"yarn") run_command yarn run --silent ;;
"*")
echo"Unknown package manager: $packageManager"exit 0
;;
esac
and also the match all pattern should be * not "*"
The text was updated successfully, but these errors were encountered:
MondoGao
changed the title
Don't trigger hook when installed by tnpm, cnpm
Don't trigger hook when installed by tnpm
Mar 3, 2020
afc163
added a commit
to afc163/husky
that referenced
this issue
Mar 10, 2020
tnpm are largely used by Chinese developers in intranet enviroment, using them to install husky will cause
$packageManager
variable in .git/hooks/husky.local.sh equals tonpminstall
, thus hooks can't be trigger with following code in husky.shand also the match all pattern should be
*
not"*"
The text was updated successfully, but these errors were encountered: