added nvm support for husky

This commit is contained in:
Anirban Kar 2024-12-03 18:51:29 +05:30
parent cc1bacf4a8
commit fec7579e00

View File

@ -2,6 +2,9 @@
echo "🔍 Running pre-commit hook to check the code looks good... 🔍"
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # Load nvm if you're using i
if ! pnpm typecheck; then
echo "❌ Type checking failed! Please review TypeScript types."
echo "Once you're done, don't forget to add your changes to the commit! 🚀"