Skip to content

Commit

Permalink
fix: Add volta config to pre-commit hook.
Browse files Browse the repository at this point in the history
  • Loading branch information
ryohidaka committed May 10, 2024
1 parent a545d88 commit 5b2b48f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

export VOLTA_HOME="$HOME/.volta"
export PATH="$VOLTA_HOME/bin:$PATH"

npx lint-staged
npm run format
npm run test

0 comments on commit 5b2b48f

Please sign in to comment.