From 3fea18d0b4e3f4c1e927459c798626c31b748d30 Mon Sep 17 00:00:00 2001 From: Gar Date: Thu, 14 Jul 2022 09:15:24 -0700 Subject: [PATCH] fix: disable progress bar on publish It is not supposed to be there, in that it doesn't get any updates and gets in the way of logging messages. We already log the server we are publishing to in the `notice` headers so the one `http` log message that we get during publish isn't needed on stdout. --- lib/commands/publish.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/commands/publish.js b/lib/commands/publish.js index 579f5d6e74e67..175a509c8d62b 100644 --- a/lib/commands/publish.js +++ b/lib/commands/publish.js @@ -61,7 +61,7 @@ class Publish extends BaseCommand { throw new Error('Tag name must not be a valid SemVer range: ' + defaultTag.trim()) } - const opts = { ...this.npm.flatOptions } + const opts = { ...this.npm.flatOptions, progress: false } // you can publish name@version, ./foo.tgz, etc. // even though the default is the 'file:.' cwd.