@electron/build-tools
Advanced tools
Comparing version 1.0.4 to 1.1.0
{ | ||
"name": "@electron/build-tools", | ||
"version": "1.0.4", | ||
"version": "1.1.0", | ||
"description": "A wrapper toolkit for working with Electron.js source code", | ||
"main": "index.js", | ||
"bin": { | ||
"e": "./run.js" | ||
"e": "./run.js", | ||
"electron-build-tools": "./run.js" | ||
}, | ||
@@ -9,0 +10,0 @@ "scripts": { |
@@ -26,8 +26,8 @@ #!/usr/bin/env node | ||
throwForBadSpawn( | ||
'git checkout master', | ||
spawnSync('git', ['checkout', 'master', '-f'], { stdio: 'inherit', cwd: installPath }), | ||
'git checkout main', | ||
spawnSync('git', ['checkout', 'main', '-f'], { stdio: 'inherit', cwd: installPath }), | ||
); | ||
throwForBadSpawn( | ||
'git reset', | ||
spawnSync('git', ['reset', '--hard', 'origin/master'], { | ||
spawnSync('git', ['reset', '--hard', 'origin/main'], { | ||
stdio: 'inherit', | ||
@@ -59,2 +59,5 @@ cwd: installPath, | ||
} | ||
// Set the exit code to an error so npm will also show the error instead of failing silently. | ||
process.exitCode = 1; | ||
} | ||
@@ -61,0 +64,0 @@ } |
@@ -19,4 +19,4 @@ const assert = require('assert'); | ||
it('can execute e', () => { | ||
const info = execSync('e'); | ||
const info = execSync('e --help'); | ||
assert.match(info.toString(), /Electron build tool/); | ||
}); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
4959
86