We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 436fafc commit a387d82Copy full SHA for a387d82
.husky/post-checkout
@@ -1,4 +1,14 @@
1
#!/usr/bin/env sh
2
. "$(dirname -- "$0")/_/husky.sh"
3
4
+# Load nvm
5
+export NVM_DIR="$HOME/.nvm"
6
+if [ ! -s "$NVM_DIR/nvm.sh" ]; then
7
+ # nvm not available, quietly exit
8
+ exit 0
9
+fi
10
+. "$NVM_DIR/nvm.sh"
11
+
12
13
+nvm install
14
pnpm i
.husky/pre-push
@@ -7,7 +7,7 @@ export NVM_DIR="$HOME/.nvm"
if [ $(git branch --no-color | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/') = "master" ] && [ $(git remote get-url origin) = "https://github.com/monkeytypegame/monkeytype" ]; then
- nvm use
+ nvm install
echo "Running a full check before pushing to master..."
npm run full-check
if [ $? -ne 0 ]; then
0 commit comments