Skip to content

Commit 03ec495

Browse files
committed
fix: tag termanology
1 parent 0f4be49 commit 03ec495

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/commands/publish.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,10 +133,10 @@ class Publish extends BaseCommand {
133133
const registry = npmFetch.pickRegistry(resolved, opts)
134134

135135
const latestVersion = await this.#latestPublishedVersion(resolved, registry)
136-
const latestTagIsGreater = !!latestVersion && semver.gte(latestVersion, manifest.version)
136+
const latestSemverIsGreater = !!latestVersion && semver.gte(latestVersion, manifest.version)
137137

138-
if (latestTagIsGreater && isDefaultTag) {
139-
throw new Error('Cannot publish a lower version without an explicit dist tag.')
138+
if (latestSemverIsGreater && isDefaultTag) {
139+
throw new Error('Cannot publish a lower version without an explicit tag.')
140140
}
141141

142142
// make sure tag is valid, this will throw if invalid

0 commit comments

Comments
 (0)