From 3fbac5ac3ce78315e24484440d4e794ba7f27097 Mon Sep 17 00:00:00 2001 From: Finnegan's Owner <44065187+pacmano1@users.noreply.github.com> Date: Sun, 25 Oct 2026 13:16:10 -0600 Subject: [PATCH] Install the web admin's npm packages with npm ci The build ran npm install, which can resolve newer package versions than package-lock.json names and rewrite the lockfile. The other Diridium plugins run npm ci, which installs exactly what the lockfile says and stops if package.json and the lockfile disagree. The build.mjs comment that names the step says so too. Tested with mvn -B -ntp clean verify on Java 17.0.17 and Maven 3.9.16: the build ran npm ci (25 packages) and 14 tests, package-lock.json was byte-identical afterwards, and the zip's 26 files, jar contents included, are identical to main's build; only timestamps differ. A dry run of npm ci with scripts off passed on copies of the two files, and stopped with "npm ci can only install packages when your package.json and package-lock.json ... are in sync" once package.json asked for an esbuild version the lockfile doesn't have. Co-Authored-By: Claude Opus 5.5 --- package/pom.xml | 5 +++-- package/webadmin/web/build.mjs | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/package/pom.xml b/package/pom.xml index e58fcc8..b7de726 100644 --- a/package/pom.xml +++ b/package/pom.xml @@ -113,10 +113,11 @@ v24.21.0 - npm-install + npm-ci generate-resources npm - install + + ci npm-build-webadmin diff --git a/package/webadmin/web/build.mjs b/package/webadmin/web/build.mjs index 57be2d1..9ada6f5 100644 --- a/package/webadmin/web/build.mjs +++ b/package/webadmin/web/build.mjs @@ -5,7 +5,7 @@ * serves raw and plugin.json points to (web/plugin.js). The browser can't run * JSX, so the bundle has to be built before packaging. * - * The Maven build runs this through frontend-maven-plugin (npm install, then + * The Maven build runs this through frontend-maven-plugin (npm ci, then * npm run build) in the package module, so `mvn package` regenerates * web/plugin.js every time. plugin.js is a build output: it is gitignored and * never committed.