Skip to content

Commit

Permalink
fix: empty maker option path
Browse files Browse the repository at this point in the history
  • Loading branch information
bennymeg committed Apr 28, 2022
1 parent 6abd615 commit d659149
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/nx-electron/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nx-electron",
"version": "13.0.0-beta.0",
"version": "13.0.0-beta.1",
"main": "src/index.js",
"description": "Electron Plugin for Nx",
"author": "Benny Megidish",
Expand Down
5 changes: 3 additions & 2 deletions packages/nx-electron/src/executors/package/executor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,9 @@ function _normalizeBuilderOptions(targets: Map<Platform, Map<Arch, string[]>>, c

function mergePresetOptions(options: PackageElectronBuilderOptions): PackageElectronBuilderOptions {
// load preset options file
const externalOptionsPath: string =
resolve(options.root, options.makerOptionsPath) || join(options.root, options['sourceRoot'], 'app', 'options', 'maker.options.json');
const externalOptionsPath: string = options.makerOptionsPath ?
resolve(options.root, options.makerOptionsPath) :
join(options.root, options['sourceRoot'], 'app', 'options', 'maker.options.json');

if (statSync(externalOptionsPath).isFile()) {
const rawData = readFileSync(externalOptionsPath, 'utf8')
Expand Down

0 comments on commit d659149

Please sign in to comment.