Skip to content

Commit

Permalink
chore: remove nvm stuff from husky commit-msg
Browse files Browse the repository at this point in the history
  • Loading branch information
mattjennings committed Aug 4, 2023
1 parent a3a04ff commit d442a68
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -1,14 +1,2 @@
#!/bin/sh
export NVM_DIR="$HOME/.nvm/nvm.sh"
. "$(dirname $NVM_DIR)/nvm.sh"

export NVM_DIR="$HOME/.nvm"
a=$(nvm ls | grep 'node')
b=${a#*(-> }
v=${b%%[)| ]*}

export PATH="$NVM_DIR/versions/node/$v/bin:$PATH"

. "$(dirname "$0")/_/husky.sh"

npx --no -- commitlint --edit ""

0 comments on commit d442a68

Please sign in to comment.