From 3b63e1c8fdb7755537db3abe3177b0d4b76e3822 Mon Sep 17 00:00:00 2001 From: Jakob Ackermann Date: Wed, 7 Jul 2021 13:14:55 +0100 Subject: [PATCH] [perf] use npm ci --only=production for all but web --- bin/install-services | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/bin/install-services b/bin/install-services index 6f2d17e5b7..becf174cc1 100755 --- a/bin/install-services +++ b/bin/install-services @@ -8,7 +8,15 @@ grep 'name:' config/services.js | \ do pushd $service echo "Installing service $service" - npm ci + case $service in + web) + # install webpack and friends from dev-dependencies. + npm ci + ;; + *) + npm ci --only=production + ;; + esac popd done