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 7b16d1e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
#!/bin/sh
echo "Running pre-commit hook"

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

set -e

fnm use || true
nvm use || true

corepack enable
yarn lint-staged

Expand Down

0 comments on commit 7b16d1e

Please sign in to comment.