-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace binary-install with simple-binary-install (#133)
`binary-install` has open CVEs, and `simple-binary-install` seems to do the same thing, but with fewer dependencies.
- Loading branch information
Showing
5 changed files
with
13 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
/package-lock.json | ||
/node_modules/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
#!/usr/bin/env node | ||
const getBinary = require('./getBinary'); | ||
import { getBinary } from './getBinary.js'; | ||
|
||
const binary = getBinary(); | ||
binary.run(); | ||
getBinary().run(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,5 @@ | ||
function getBinary({ fatal }) { | ||
try { | ||
return require('./getBinary')(); | ||
} catch (err) { | ||
if (fatal) throw err; | ||
} | ||
} | ||
import { getBinary } from './getBinary.js'; | ||
|
||
if (process.argv.includes('install')) { | ||
const binary = getBinary({ fatal: true }); | ||
if (binary) binary.install(); | ||
getBinary().install(); | ||
} | ||
|