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:
-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()
})