Skip to content

Commit

Permalink
run fnm use and nvm use to ensure correct version of node before …
Browse files Browse the repository at this point in the history
…executing the various steps in the `pre-commit` hook (configured via husky)
  • Loading branch information
twrichards committed Oct 28, 2024
1 parent 8749f60 commit b081524
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
#!/bin/sh
echo "Running pre-commit hook"

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

set -e

fnm use

fnm use || true
nvm use || true

corepack enable
yarn lint-staged

Expand Down

0 comments on commit b081524

Please sign in to comment.