Skip to content

Commit

Permalink
Miscellaneous fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
malept committed Dec 30, 2016
1 parent 7b1405c commit 6f195f2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/electron-forge-import.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,8 @@ const main = async () => {

let electronVersion;
if (electronName) {
electronVersion = JSON.parse(await fs.readFile(path.resolve(dir, 'node_modules', electronName, 'package.json'))).version;
const electronPackageJSON = await readPackageJSON(path.resolve(dir, 'node_modules', electronName));
electronVersion = electronPackageJSON.version;
packageJSON.devDependencies['electron-prebuilt-compile'] = electronVersion;
}

Expand Down
2 changes: 1 addition & 1 deletion src/electron-forge-make.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const main = async () => {
.option('--skip-package', 'Assume the app is already packaged')
.option('-a, --arch [arch]', 'Target architecture')
.option('-p, --platform [platform]', 'Target build platform')
.option('-t, --targets [targets]', 'Override your mnake targets for this run')
.option('-t, --targets [targets]', 'Override your make targets for this run')
.allowUnknownOption(true)
.action((cwd) => {
if (!cwd) return;
Expand Down

0 comments on commit 6f195f2

Please sign in to comment.