mirror of
https://github.com/filecoin-project/slate.git
synced 2024-11-27 10:52:41 +03:00
8 lines
220 B
Plaintext
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 |