diff --git a/.husky/post-checkout b/.husky/post-checkout new file mode 100755 index 0000000000..220b1d6c7f --- /dev/null +++ b/.husky/post-checkout @@ -0,0 +1,9 @@ +#!/usr/bin/env sh +. "$(dirname -- "$0")/_/husky.sh" + +CHANGED=`git diff $1 $2 --stat -- yarn.lock | wc -l` +if [ $CHANGED -gt 0 ]; +then + echo + echo "*** 🟡 yarn.lock has changed 🟡 ***" +fi \ No newline at end of file diff --git a/.husky/post-merge b/.husky/post-merge new file mode 100755 index 0000000000..6999a8154d --- /dev/null +++ b/.husky/post-merge @@ -0,0 +1,9 @@ +#!/usr/bin/env sh +. "$(dirname -- "$0")/_/husky.sh" + +CHANGED=`git diff HEAD@{1} --stat -- yarn.lock | wc -l` +if [ $CHANGED -gt 0 ]; +then + echo + echo "*** 🟡 yarn.lock has changed 🟡 ***" +fi \ No newline at end of file