Skip to content

Commit f4728c3

Browse files
mmckeggdevelar
authored andcommitted
fix: typo in handling of npmArgs (#883)
Whoops, when fixing code as per review in #881, accidentally broke the code.
1 parent 08913b6 commit f4728c3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/util/util.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,10 @@ export function spawnNpmProduction(command: string, appDir: string, forceBuildFr
5656

5757
if (additionalArgs) {
5858
if (Array.isArray(additionalArgs)) {
59-
additionalArgs.push(...additionalArgs)
59+
npmExecArgs.push(...additionalArgs)
6060
}
6161
else {
62-
additionalArgs.push(additionalArgs)
62+
npmExecArgs.push(additionalArgs)
6363
}
6464
}
6565

@@ -324,4 +324,4 @@ export function getCacheDirectory(): string {
324324
else {
325325
return path.join(homedir(), ".cache", "electron-builder")
326326
}
327-
}
327+
}

0 commit comments

Comments
 (0)