Skip to content

Commit

Permalink
fix: ensure force-process-config is not passed to prerelease v20+ (#1023
Browse files Browse the repository at this point in the history
)
  • Loading branch information
MarshallOfSound committed Jul 8, 2022
1 parent 20107a8 commit 3f5ff99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/module-type/node-gyp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export class NodeGyp extends NativeModule {
// and --force-process-config must be passed to node-gyp >= 8.4.0 to
// correctly build modules for them.
// See also https://github.com/nodejs/node-gyp/pull/2497
if (!semver.satisfies(this.rebuilder.electronVersion, '^14.2.0 || ^15.3.0 || >= 16.0.0-alpha.1')) {
if (!semver.satisfies(this.rebuilder.electronVersion, '^14.2.0 || ^15.3.0') && semver.major(this.rebuilder.electronVersion) < 16) {
args.push('--force-process-config');
}

Expand Down

0 comments on commit 3f5ff99

Please sign in to comment.