New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@electron/build-tools

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@electron/build-tools - npm Package Compare versions

Comparing version 1.0.4 to 1.1.0

5

package.json
{
"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": {

9

preinstall.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc