From ae342c634e8016625c79a94adc7d0eb9b37367fa Mon Sep 17 00:00:00 2001 From: Wei-Lun Li Date: Tue, 17 Nov 2026 04:14:04 +0900 Subject: [PATCH] fix(tools): spawn npm through npmSpawnArgs in start --smtp (#4650) npm start -- --smtp (and npm run start:smtp) still called run(npm, ...) after the npm constant was replaced by npmSpawnArgs, so it stopped with "npm is not defined" before building. --- tools/start.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/start.mjs b/tools/start.mjs index 4b86ea1ca..12fc58c00 100644 --- a/tools/start.mjs +++ b/tools/start.mjs @@ -67,7 +67,7 @@ const smtp = try { if ( smtp ) { - await run(npm, ['run', 'build:ts']); + await run(...npmSpawnArgs(['run', 'build:ts'])); await run(process.execPath, [ '--enable-source-maps', '-r', './dist/src/backend/telemetry.js',