We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3068fa8 commit d240f61Copy full SHA for d240f61
pre-commit
@@ -1,7 +1,7 @@
1
#!/bin/sh
2
set -e
3
4
-if [ "$(dirname "$0")" != ".git/hooks" ] || git diff --cached --name-only | grep -E '.(js|json)$'; then
+if [ "$(dirname "$0")" != ".git/hooks" ] || git diff --cached --name-only | grep -E '.(js|json)$|yarn.lock'; then
5
yarn install
6
yarn run package
7
exec git add dist/index.js
0 commit comments