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.
This commit is contained in:
Wei-Lun Li authored and GitHub committed 2026-11-16 12:14:04 -07:00
1 parent b85c04d49a
commit ae342c634e
1 file changed
+1 -1
+1 -1
View File
@@ -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',