Skip to content

Commit

Permalink
fix: typo in handling of npmArgs (#883)
Browse files Browse the repository at this point in the history
Whoops, when fixing code as per review in #881, accidentally broke the code.
  • Loading branch information
mmckegg authored and develar committed Nov 5, 2016
1 parent 08913b6 commit f4728c3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/util/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,10 @@ export function spawnNpmProduction(command: string, appDir: string, forceBuildFr

if (additionalArgs) {
if (Array.isArray(additionalArgs)) {
additionalArgs.push(...additionalArgs)
npmExecArgs.push(...additionalArgs)
}
else {
additionalArgs.push(additionalArgs)
npmExecArgs.push(additionalArgs)
}
}

Expand Down Expand Up @@ -324,4 +324,4 @@ export function getCacheDirectory(): string {
else {
return path.join(homedir(), ".cache", "electron-builder")
}
}
}

0 comments on commit f4728c3

Please sign in to comment.