Skip to content

Commit c3d7549

Browse files
wraithgarfritzy
authored andcommitted
fix: add tag to publish log message
1 parent 9c32c6c commit c3d7549

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

lib/commands/publish.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,10 @@ class Publish extends BaseCommand {
114114
}
115115
}
116116

117-
log.notice('', `Publishing to ${outputRegistry}${dryRun ? ' (dry-run)' : ''}`)
117+
log.notice(
118+
'',
119+
`Publishing to ${outputRegistry} with tag ${defaultTag}${dryRun ? ' (dry-run)' : ''}`
120+
)
118121

119122
if (!dryRun) {
120123
await otplease(this.npm, opts, opts => libpub(manifest, tarballData, opts))

tap-snapshots/test/lib/commands/publish.js.test.cjs

+3-3
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ Array [
5151
],
5252
Array [
5353
"",
54-
"Publishing to https://registry.npmjs.org/ (dry-run)",
54+
"Publishing to https://registry.npmjs.org/ with tag latest (dry-run)",
5555
],
5656
]
5757
`
@@ -72,7 +72,7 @@ exports[`test/lib/commands/publish.js TAP json > must match snapshot 1`] = `
7272
Array [
7373
Array [
7474
"",
75-
"Publishing to https://registry.npmjs.org/",
75+
"Publishing to https://registry.npmjs.org/ with tag latest",
7676
],
7777
]
7878
`
@@ -165,7 +165,7 @@ Array [
165165
],
166166
Array [
167167
"",
168-
"Publishing to https://registry.npmjs.org/",
168+
"Publishing to https://registry.npmjs.org/ with tag latest",
169169
],
170170
]
171171
`

0 commit comments

Comments
 (0)