Skip to content

Commit d240f61

Browse files
committed
Run pre-commit hook when changing yarn.lock
1 parent 3068fa8 commit d240f61

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pre-commit

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/sh
22
set -e
33

4-
if [ "$(dirname "$0")" != ".git/hooks" ] || git diff --cached --name-only | grep -E '.(js|json)$'; then
4+
if [ "$(dirname "$0")" != ".git/hooks" ] || git diff --cached --name-only | grep -E '.(js|json)$|yarn.lock'; then
55
yarn install
66
yarn run package
77
exec git add dist/index.js

0 commit comments

Comments
 (0)