Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Crites <ajcrites@gmail.com>2015-06-26 09:21:37 +0300
committerRebecca Turner <me@re-becca.org>2015-07-01 13:11:00 +0300
commit0848698e36b8b020d391e2093c09470be3b960d6 (patch)
treebca1c58d92016927674c653d21a9628ed0659b0a
parent3fcf35dfb4c314e5d9643959cf1c029445c29b2e (diff)
publish: Label and clear progress bar on publish
PR-URL: https://github.com/npm/npm/pull/8686
-rw-r--r--lib/publish.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/publish.js b/lib/publish.js
index 08525c74a..45de4f24b 100644
--- a/lib/publish.js
+++ b/lib/publish.js
@@ -133,6 +133,7 @@ function publish_ (arg, data, isRetry, cachedir, cb) {
params.access = config.get('access')
}
+ log.showProgress('publish:' + data._id)
registry.publish(registryBase, params, function (er) {
if (er && er.code === 'EPUBLISHCONFLICT' &&
npm.config.get('force') && !isRetry) {
@@ -146,6 +147,7 @@ function publish_ (arg, data, isRetry, cachedir, cb) {
// report the unpublish error if this was a retry and unpublish failed
if (er && isRetry && isRetry !== true) return cb(isRetry)
if (er) return cb(er)
+ log.clearProgress()
console.log('+ ' + data._id)
cb()
})