We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent da7eb23 commit 8e43390Copy full SHA for 8e43390
scripts/update-electron.js
@@ -11,9 +11,13 @@ async function cleanAndBootstrap(electronVersion) {
11
await runInDir('rm -Rf node_modules');
12
const packageJsonBkp = fs.readFileSync('./package.json');
13
await runInDir('npm i');
14
- await runInDir(`npm i electron@${electronVersion}`); // make sure electron is hoisted on the root
+ // Make sure electron is hoisted on the root
15
+ await runInDir(`npm i electron@${electronVersion}`);
16
await runInDir('npm run bootstrap');
17
fs.writeFileSync('./package.json', packageJsonBkp);
18
+ // Run install again to make sure root level electron is removed from
19
+ // package-lock
20
+ await runInDir('npm i');
21
} catch (error) {
22
console.error(`Error running command: ${error}`);
23
}
0 commit comments