slate/.githooks/post-merge

8 lines
220 B
Plaintext
Raw Normal View History

2021-02-17 20:27:48 +03:00
function changed {
git diff --name-only HEAD@{1} HEAD | grep "^$1" > /dev/null 2>&1
}
if changed 'package-lock.json'; then
echo "📦 package-lock.json changed. Installing the latest dependencies.";
npm install
fi