We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5283a8b commit e9a2a06Copy full SHA for e9a2a06
.husky/pre-commit
@@ -1,4 +1,8 @@
1
#!/bin/sh
2
+
3
+# Ignore husky hooks if no frontend code has been changed
4
+git diff --cached --name-only | grep -v --quiet "^pkg/" || exit 0
5
6
. "$(dirname "$0")/_/husky.sh"
7
8
yarn run precommit
0 commit comments