Skip to content
This repository has been archived by the owner on May 17, 2021. It is now read-only.

Commit

Permalink
fix(webpack): Correct semver usage to fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
imlucas committed Jan 21, 2020
1 parent 0447522 commit 3e209b4
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions config/project.js
Expand Up @@ -6,10 +6,8 @@ const packageJson = require(path.join(__dirname, '/../package.json'));
// Gets a valid version range for the current electron dependency
// declared in our package.json
// Eg: "^1.6.1" would yield ">=1.6.1"
const electronVersion = semver
.Range(packageJson.devDependencies.electron) // eslint-disable-line new-cap
.set[0][0]
.value;
const electronVersion = new semver.Range(packageJson.devDependencies.electron) // eslint-disable-line new-cap
.set[0][0].value;

module.exports = {
path: {
Expand Down

0 comments on commit 3e209b4

Please sign in to comment.