Skip to content

Commit

Permalink
chore: fix git pre-push hook
Browse files Browse the repository at this point in the history
  • Loading branch information
rackstar committed Sep 27, 2024
1 parent 2d9c643 commit 48ec2fa
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .husky/pre-push
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
npm run lint && { [ "$PRE_PUSH_RUN_TEST" = "true" ] && npm test; } || exit 0
#!/bin/sh
set -e

npm run lint

if [ "$PRE_PUSH_RUN_TEST" = "true" ]; then
npm test
fi

0 comments on commit 48ec2fa

Please sign in to comment.