Only run npm install when we really need to

This commit is contained in:
Oliver Blanthorn 2018-05-21 13:44:21 +01:00
parent 2557b32b20
commit 08c0fb08e8
No known key found for this signature in database
GPG key ID: 2BB8C36BB504BFF3
2 changed files with 2 additions and 2 deletions

View file

@ -9,6 +9,6 @@ file_changed() {
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
fi

View file

@ -9,6 +9,6 @@ file_changed() {
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
fi