Skip to content

Commit 3c1d832

Browse files
Filipp MakarovFilipp Makarov
authored andcommitted
chore: fix pre commit hook
1 parent 2beec92 commit 3c1d832

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

.husky/pre-commit

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
#!/usr/bin/env sh
22

3+
# Load nvm so node/pnpm are available in the hook
4+
export NVM_DIR="$HOME/.nvm"
5+
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"
6+
37
# Get list of staged files
48
STAGED_FILES=$(git diff --cached --name-only)
59

0 commit comments

Comments
 (0)