We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 97abe18 commit eae9974Copy full SHA for eae9974
lib/commands/publish.js
@@ -216,7 +216,7 @@ class Publish extends BaseCommand {
216
const ordered = Object.keys(packument?.versions)
217
.flatMap(v => {
218
const s = new semver.SemVer(v)
219
- return s.prerelease.length > 0 ? [] : s;
+ return s.prerelease.length > 0 ? [] : s
220
})
221
.sort((a, b) => b.compare(a))
222
return ordered.length >= 1 ? ordered[0].version : null
0 commit comments