diff --git a/modules/profile/files/builder/builder-do-update.sh b/modules/profile/files/builder/builder-do-update.sh index fca8ce5..55136e7 100644 --- a/modules/profile/files/builder/builder-do-update.sh +++ b/modules/profile/files/builder/builder-do-update.sh @@ -11,9 +11,11 @@ trap cleanup EXIT export NODE_ENV=production cd "$1" -npm install -npm update -npm prune +if [ -e 'package-lock.json' ] || [ -e 'npm-shrinkwrap.json' ]; then + npm ci +else + npm install +fi GRUNT="node_modules/.bin/grunt" SERVERS="$(cat /etc/builder-wordpress-hosts)"