added nvm support for husky
Browse files- .husky/pre-commit +3 -0
.husky/pre-commit
CHANGED
|
@@ -2,6 +2,9 @@
|
|
| 2 |
|
| 3 |
echo "π Running pre-commit hook to check the code looks good... π"
|
| 4 |
|
|
|
|
|
|
|
|
|
|
| 5 |
if ! pnpm typecheck; then
|
| 6 |
echo "β Type checking failed! Please review TypeScript types."
|
| 7 |
echo "Once you're done, don't forget to add your changes to the commit! π"
|
|
|
|
| 2 |
|
| 3 |
echo "π Running pre-commit hook to check the code looks good... π"
|
| 4 |
|
| 5 |
+
export NVM_DIR="$HOME/.nvm"
|
| 6 |
+
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # Load nvm if you're using i
|
| 7 |
+
|
| 8 |
if ! pnpm typecheck; then
|
| 9 |
echo "β Type checking failed! Please review TypeScript types."
|
| 10 |
echo "Once you're done, don't forget to add your changes to the commit! π"
|