Set quiet to true when loglevel is silent
This commit is contained in:
parent
082c1da548
commit
fb2f4ae528
2 changed files with 9 additions and 3 deletions
|
@ -36,7 +36,13 @@ if (installedVersion === version && fs.existsSync(path.join(__dirname, paths[pla
|
|||
}
|
||||
|
||||
// downloads if not cached
|
||||
download({version: version, platform: process.env.npm_config_platform, arch: process.env.npm_config_arch, strictSSL: process.env.npm_config_strict_ssl === 'true'}, extractFile)
|
||||
download({
|
||||
version: version,
|
||||
platform: process.env.npm_config_platform,
|
||||
arch: process.env.npm_config_arch,
|
||||
strictSSL: process.env.npm_config_strict_ssl === 'true',
|
||||
quiet: process.env.npm_config_loglevel === 'silent',
|
||||
}, extractFile)
|
||||
|
||||
// unzips and makes path.txt point at the correct executable
|
||||
function extractFile (err, zipPath) {
|
||||
|
|
|
@ -6,8 +6,8 @@
|
|||
"scripts": {
|
||||
"cache-clean": "rm -rf ~/.electron && rm -rf dist",
|
||||
"postinstall": "node install.js",
|
||||
"pretest": "npm run cache-clean && node install.js",
|
||||
"test": "standard && tape test/*.js"
|
||||
"pretest": "npm run cache-clean && npm --silent run postinstall",
|
||||
"test": "tape test/*.js && standard"
|
||||
},
|
||||
"bin": {
|
||||
"electron": "cli.js"
|
||||
|
|
Loading…
Reference in a new issue