electron-release
Advanced tools
Comparing version 2.1.0 to 2.1.1
@@ -5,2 +5,3 @@ #!/usr/bin/env node | ||
var Publish = require('./index'); | ||
var chalk = require('chalk'); | ||
var meow = require('meow'); | ||
@@ -21,3 +22,3 @@ var cli = meow({ | ||
publish.compress()['catch'](function (err) { | ||
console.log(err); | ||
console.log(chalk.red(err)); | ||
process.exit(); | ||
@@ -27,6 +28,8 @@ }).then(function () { | ||
})['catch'](function (err) { | ||
console.log(err); | ||
console.log(chalk.red(err)); | ||
process.exit(); | ||
}).then(function () { | ||
return publish.updateUrl(); | ||
}).then(function () { | ||
console.log(chalk.green('Published new release to GitHub (' + opts.tag + ')')); | ||
}); |
@@ -97,2 +97,4 @@ 'use strict'; | ||
}); | ||
})['catch'](function (err) { | ||
resolve(); | ||
}); | ||
@@ -99,0 +101,0 @@ }); |
{ | ||
"name": "electron-release", | ||
"version": "2.1.0", | ||
"version": "2.1.1", | ||
"description": "Publish a new release of your app to Github.", | ||
@@ -30,2 +30,3 @@ "main": "index.js", | ||
"bluebird": "^2.10.0", | ||
"chalk": "^1.1.1", | ||
"got": "^4.2.0", | ||
@@ -32,0 +33,0 @@ "load-json-file": "^1.0.1", |
#!/usr/bin/env node | ||
'use strict' | ||
const Publish = require('./index') | ||
const chalk = require('chalk') | ||
const meow = require('meow') | ||
@@ -30,3 +31,3 @@ const cli = meow({ | ||
.catch(function (err) { | ||
console.log(err) | ||
console.log(chalk.red(err)) | ||
process.exit() | ||
@@ -38,3 +39,3 @@ }) | ||
.catch(function (err) { | ||
console.log(err) | ||
console.log(chalk.red(err)) | ||
process.exit() | ||
@@ -45,1 +46,4 @@ }) | ||
}) | ||
.then(function () { | ||
console.log(chalk.green('Published new release to GitHub (' + opts.tag + ')')) | ||
}) |
@@ -82,2 +82,5 @@ 'use strict' | ||
}) | ||
.catch(function (err) { | ||
resolve() | ||
}) | ||
}) | ||
@@ -84,0 +87,0 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
12635
293
7
+ Addedchalk@^1.1.1