Skip to content

Commit 5c2ba19

Browse files
committed
fix: replace npm install with npm ci to prevent package-lock.json changes
1 parent 34673c4 commit 5c2ba19

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

electron-app/build.mjs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ if (buildCommonFront) {
211211
logger.info("📦 Building common-front...");
212212
logger.step(`Building ${colors.magenta}common-front${colors.reset}...`);
213213
// Install dependencies
214-
run("npm install", join(root, "common-front"));
214+
run("npm ci", join(root, "common-front"));
215215
// Build the library
216216
run("npm run build", join(root, "common-front"));
217217
}
@@ -222,7 +222,7 @@ if (buildControlStation) {
222222
logger.info("📦 Building control-station...");
223223
logger.step(`Building ${colors.magenta}control-station${colors.reset}...`);
224224
// Install dependencies
225-
run("npm install", join(root, "control-station"));
225+
run("npm ci", join(root, "control-station"));
226226
// Build the application
227227
run("npm run build", join(root, "control-station"));
228228

@@ -246,7 +246,7 @@ if (buildEthernetView) {
246246
logger.info("📦 Building ethernet-view...");
247247
logger.step(`Building ${colors.magenta}ethernet-view${colors.reset}...`);
248248
// Install dependencies
249-
run("npm install", join(root, "ethernet-view"));
249+
run("npm ci", join(root, "ethernet-view"));
250250
// Build the application
251251
run("npm run build", join(root, "ethernet-view"));
252252

@@ -269,7 +269,7 @@ if (buildControlStation || buildEthernetView) {
269269
console.log();
270270
logger.info("📦 Installing Electron dependencies...");
271271
// Install Electron app dependencies
272-
run("npm install", __dirname);
272+
run("npm ci", __dirname);
273273
}
274274

275275
console.log();

0 commit comments

Comments
 (0)