Skip to content

Commit 5a04145

Browse files
committedJan 4, 2019
fix(publish): Tweak progress logging
1 parent c528758 commit 5a04145

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed
 

‎commands/publish/index.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,7 @@ class PublishCommand extends Command {
515515
packUpdated() {
516516
const tracker = this.logger.newItem("npm pack");
517517

518-
tracker.addWork(this.packagesToPublish.length + 1);
518+
tracker.addWork(this.packagesToPublish.length);
519519

520520
let chain = Promise.resolve();
521521

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

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

544545
// store metadata for use in this.publishPacked()
@@ -581,8 +582,8 @@ class PublishCommand extends Command {
581582
[
582583
pkg =>
583584
pulseTillDone(npmPublish(pkg, pkg.packed.tarFilePath, opts)).then(() => {
584-
tracker.completeWork(1);
585585
tracker.success("published", pkg.name, pkg.version);
586+
tracker.completeWork(1);
586587

587588
logPacked(pkg.packed);
588589

0 commit comments

Comments
 (0)
Please sign in to comment.