Skip to content

Commit

Permalink
fix(publish): Tweak progress logging
Browse files Browse the repository at this point in the history
  • Loading branch information
evocateur committed Jan 4, 2019
1 parent c528758 commit 5a04145
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions commands/publish/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,7 @@ class PublishCommand extends Command {
packUpdated() {
const tracker = this.logger.newItem("npm pack");

tracker.addWork(this.packagesToPublish.length + 1);
tracker.addWork(this.packagesToPublish.length);

let chain = Promise.resolve();

Expand All @@ -539,6 +539,7 @@ class PublishCommand extends Command {

pkg =>
pulseTillDone(packDirectory(pkg, getLocation(pkg), opts)).then(packed => {
tracker.verbose("packed", pkg.name, path.relative(this.project.rootPath, getLocation(pkg)));
tracker.completeWork(1);

// store metadata for use in this.publishPacked()
Expand Down Expand Up @@ -581,8 +582,8 @@ class PublishCommand extends Command {
[
pkg =>
pulseTillDone(npmPublish(pkg, pkg.packed.tarFilePath, opts)).then(() => {
tracker.completeWork(1);
tracker.success("published", pkg.name, pkg.version);
tracker.completeWork(1);

logPacked(pkg.packed);

Expand Down

0 comments on commit 5a04145

Please sign in to comment.