mirror of
https://github.com/vale981/tridactyl
synced 2025-03-05 17:41:40 -05:00
Only run npm install when we really need to
This commit is contained in:
parent
2557b32b20
commit
08c0fb08e8
2 changed files with 2 additions and 2 deletions
|
@ -9,6 +9,6 @@ file_changed() {
|
||||||
echo "$changed_files" | grep --quiet "$1"
|
echo "$changed_files" | grep --quiet "$1"
|
||||||
}
|
}
|
||||||
|
|
||||||
if file_changed package.json || file_changed package-lock.json; then
|
if file_changed package.json; then
|
||||||
npm install
|
npm install
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -9,6 +9,6 @@ file_changed() {
|
||||||
echo "$changed_files" | grep --quiet "$1"
|
echo "$changed_files" | grep --quiet "$1"
|
||||||
}
|
}
|
||||||
|
|
||||||
if file_changed package.json || file_changed package-lock.json; then
|
if file_changed package.json; then
|
||||||
npm install
|
npm install
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Reference in a new issue