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 a727442 commit 51899efCopy full SHA for 51899ef
pre-commit
@@ -1,7 +1,7 @@
1
#!/bin/sh
2
set -e
3
4
-if git diff --cached --name-only | grep -E '.(js|json)$'; then
+if [ "$(dirname "$0")" != ".git/hooks" ] || git diff --cached --name-only | grep -E '.(js|json)$'; then
5
yarn install
6
yarn run package
7
exec git add dist/index.js
0 commit comments