chore: allow nvm to be used with husky
This commit is contained in:
parent
1f8ae57b48
commit
057294a985
2 changed files with 12 additions and 0 deletions
|
@ -1,4 +1,10 @@
|
||||||
#!/usr/bin/env sh
|
#!/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"
|
. "$(dirname -- "$0")/_/husky.sh"
|
||||||
|
|
||||||
npx --no -- commitlint --edit "${1}"
|
npx --no -- commitlint --edit "${1}"
|
||||||
|
|
|
@ -1,4 +1,10 @@
|
||||||
#!/usr/bin/env sh
|
#!/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"
|
. "$(dirname -- "$0")/_/husky.sh"
|
||||||
|
|
||||||
terraform fmt -check
|
terraform fmt -check
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue