feat(cli): use --no-cli to publish locally w/o prompt

This commit is contained in:
Stephan Bönnemann 2015-02-02 23:30:55 +01:00
parent b39fecbdc2
commit f2c701ca1b

View File

@ -72,7 +72,7 @@ if (~argv._.indexOf('post')) {
} }
function confirmCI (cb) { function confirmCI (cb) {
if (process.env.CI) return cb(null, true) if (process.env.CI || argv.ci === false) return cb(null, true)
confirm('Not running in a CI enviroment. Are you sure you want to run this hook?', function (ok) { confirm('Not running in a CI enviroment. Are you sure you want to run this hook?', function (ok) {
if (!ok) process.exit(1) if (!ok) process.exit(1)