Skip to content
This repository was archived by the owner on Aug 11, 2022. It is now read-only.

Commit 0848698

Browse files
ajcritesiarna
authored andcommitted
publish: Label and clear progress bar on publish
PR-URL: #8686
1 parent 3fcf35d commit 0848698

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/publish.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ function publish_ (arg, data, isRetry, cachedir, cb) {
133133
params.access = config.get('access')
134134
}
135135

136+
log.showProgress('publish:' + data._id)
136137
registry.publish(registryBase, params, function (er) {
137138
if (er && er.code === 'EPUBLISHCONFLICT' &&
138139
npm.config.get('force') && !isRetry) {
@@ -146,6 +147,7 @@ function publish_ (arg, data, isRetry, cachedir, cb) {
146147
// report the unpublish error if this was a retry and unpublish failed
147148
if (er && isRetry && isRetry !== true) return cb(isRetry)
148149
if (er) return cb(er)
150+
log.clearProgress()
149151
console.log('+ ' + data._id)
150152
cb()
151153
})

0 commit comments

Comments
 (0)