diff --git a/bin/post-checkout.sh b/bin/post-checkout.sh index 0cb97592..cae84a7a 100755 --- a/bin/post-checkout.sh +++ b/bin/post-checkout.sh @@ -1,6 +1,7 @@ #!/bin/bash -# To use this add to .git/hooks/post-checkout +# This will run automatically because of husky in package.json. +# Or, to ensure manually that it runs, add to .git/hooks/post-checkout # bin/post-checkout.sh $1 $2 set -e diff --git a/bin/post-merge.sh b/bin/post-merge.sh index 8d44abf7..95d92819 100755 --- a/bin/post-merge.sh +++ b/bin/post-merge.sh @@ -1,6 +1,7 @@ #!/bin/bash -# To use this add to .git/hooks/post-merge +# This will run automatically because of husky in package.json. +# Or, to ensure manually that it runs, add to .git/hooks/post-merge # bin/post-merge.sh set -e diff --git a/package.json b/package.json index 21f33a2c..0e0bd3c0 100644 --- a/package.json +++ b/package.json @@ -180,5 +180,11 @@ "prosemirror-model": "1.13.3", "prosemirror-view": "1.18.1" }, + "husky": { + "hooks": { + "post-checkout": "./bin/post-checkout", + "post-merge": "./bin/post-merge" + } + }, "sideEffects": false }