Skip to content

Commit

Permalink
fix: moved global package.json down in hierarchy #167
Browse files Browse the repository at this point in the history
  • Loading branch information
bennymeg committed Jun 1, 2022
1 parent 9c80b0c commit 7a72016
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/nx-electron/src/executors/package/executor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,7 @@ import { promisify } from 'util';
import { getSourceRoot } from '../../utils/workspace';
import { normalizePackagingOptions } from '../../utils/normalize';

import { Observable, from, of } from 'rxjs';
import { map, tap, concatMap, catchError } from 'rxjs/operators';
import { platform } from 'os';

import stripJsonComments from 'strip-json-comments';

try {
Expand Down Expand Up @@ -121,6 +118,7 @@ function _createBaseConfig(options: PackageElectronBuilderOptions, context: Exec
output: join(context.root, outputPath)
},
files: files.concat([
'./package.json',
{
from: resolve(options.sourcePath, options.frontendProject),
to: options.frontendProject,
Expand All @@ -136,7 +134,6 @@ function _createBaseConfig(options: PackageElectronBuilderOptions, context: Exec
to: '',
filter: ['index.js', 'package.json']
},
'./package.json',
'!(**/*.+(js|css).map)',
])
};
Expand Down

0 comments on commit 7a72016

Please sign in to comment.