slate/.githooks/post-merge
2021-02-17 17:27:48 +00:00

8 lines
220 B
Plaintext

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