Skip to content

Commit a88a9bb

Browse files
committed
fix: pre-push vsc
1 parent 455c796 commit a88a9bb

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.husky/pre-push

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
11
#!/bin/sh
2-
. "$(dirname "$0")/_/husky.sh"
2+
export NVM_DIR="$HOME/.nvm/nvm.sh"
3+
. "$(dirname $NVM_DIR)/nvm.sh"
4+
5+
export NVM_DIR="$HOME/.nvm"
6+
a=$(nvm ls | grep 'node')
7+
b=${a#*(-> }
8+
v=${b%%[)| ]*}
9+
10+
export PATH="$NVM_DIR/versions/node/$v/bin:$PATH"
311

412
npm run build

0 commit comments

Comments
 (0)