Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Commit 5a8faf5

Browse files
authored
Merge pull request #2534 from DeeDeeG/fix-redownload-electron-bins
script/redownload-electron-bins.js: Fix finding the Atom repo's package.json
2 parents ee1502b + f1d86dc commit 5a8faf5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

script/redownload-electron-bins.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ if (typeof(downloadMksnapshotPath) !== 'undefined') {
1212
const path = require('path');
1313
const fs = require('fs');
1414

15-
const atomRepoPath = path.join('..', '..', '..', '..', 'atom', 'package.json');
16-
const electronVersion = fs.existsSync(atomRepoPath) ? require(atomrepoPath).electronVersion : '6.1.12'
15+
const atomRepoPath = path.join(__dirname, '..', '..', '..', '..', 'atom', 'package.json');
16+
const electronVersion = fs.existsSync(atomRepoPath) ? require(atomRepoPath).electronVersion : '6.1.12'
1717
// TODO: Keep the above "electronVersion" in sync with "electronVersion" from Atom's package.json
1818

1919
if (process.env.ELECTRON_CUSTOM_VERSION !== electronVersion) {

0 commit comments

Comments
 (0)