chore: allow nvm to be used with husky

This commit is contained in:
Kim, Jimin 2024-02-28 23:34:32 +09:00
parent 1f8ae57b48
commit 057294a985
Signed by: pomp
GPG key ID: 77DAC7BB5CA8C7AA
2 changed files with 12 additions and 0 deletions

View file

@ -1,4 +1,10 @@
#!/usr/bin/env sh
export NVM_DIR="$HOME/.nvm"
if [ -s "$NVM_DIR/nvm.sh" ]; then
. "$NVM_DIR/nvm.sh"
fi
. "$(dirname -- "$0")/_/husky.sh"
npx --no -- commitlint --edit "${1}"