From 4918cd6a8e0e9b49494326f4c16f0c3ad193a647 Mon Sep 17 00:00:00 2001 From: erinz2020 Date: Tue, 10 Sep 2024 23:16:16 +0000 Subject: [PATCH] install dependencies before building --- frontend/maven-build.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/frontend/maven-build.sh b/frontend/maven-build.sh index 3e96680afd..967af91bb0 100755 --- a/frontend/maven-build.sh +++ b/frontend/maven-build.sh @@ -8,6 +8,11 @@ export SITE_NAME="Test Site Name" npm install react-app-rewired cd frontend + +# Use `npm ci` for consistent and faster installs in production, as it installs exact versions +# from `package-lock.json` without modifying it, ensuring stability across environments. +npm ci + npm run build rsync -a build/ ../src/main/webapp/react