File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -133,10 +133,10 @@ class Publish extends BaseCommand {
133
133
const registry = npmFetch . pickRegistry ( resolved , opts )
134
134
135
135
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 )
137
137
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.' )
140
140
}
141
141
142
142
// make sure tag is valid, this will throw if invalid
You can’t perform that action at this time.
0 commit comments