Skip to content

Commit

Permalink
fix: revert adding targets packaging options #125
Browse files Browse the repository at this point in the history
  • Loading branch information
bennymeg committed Jan 27, 2022
1 parent 56ec734 commit 5beb469
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/nx-electron/src/executors/package/executor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,10 +166,12 @@ function _createConfigFromOptions(options: PackageElectronBuilderOptions, baseCo
}

function _normalizeBuilderOptions(targets: Map<Platform, Map<Arch, string[]>>, config: Configuration, rawOptions: PackageElectronBuilderOptions): CliOptions {
let normalizedOptions: CliOptions = { config, targets, publish: rawOptions.publishPolicy || null };
let normalizedOptions: CliOptions = { config, publish: rawOptions.publishPolicy || null };

if (rawOptions.prepackageOnly) {
normalizedOptions.dir = true;
} else {
normalizedOptions.targets = targets
}

return normalizedOptions;
Expand Down

0 comments on commit 5beb469

Please sign in to comment.