@soybeanjs/changelog 0.3.9 → 0.3.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -2291,7 +2291,7 @@ async function createOptions(options) {
|
|
|
2291
2291
|
opts.tagDateMap = await getTagDateMap();
|
|
2292
2292
|
opts.prerelease || (opts.prerelease = isPrerelease(opts.to));
|
|
2293
2293
|
const isFromPrerelease = isPrerelease(opts.from);
|
|
2294
|
-
if (!
|
|
2294
|
+
if (!isPrerelease(newVersion) && isFromPrerelease) {
|
|
2295
2295
|
const allReleaseTags = opts.tags.filter((tag) => !isPrerelease(tag));
|
|
2296
2296
|
opts.from = allReleaseTags[allReleaseTags.length - 2];
|
|
2297
2297
|
}
|
package/dist/index.js
CHANGED
|
@@ -355,7 +355,7 @@ async function createOptions(options) {
|
|
|
355
355
|
opts.tagDateMap = await getTagDateMap();
|
|
356
356
|
opts.prerelease || (opts.prerelease = isPrerelease(opts.to));
|
|
357
357
|
const isFromPrerelease = isPrerelease(opts.from);
|
|
358
|
-
if (!
|
|
358
|
+
if (!isPrerelease(newVersion) && isFromPrerelease) {
|
|
359
359
|
const allReleaseTags = opts.tags.filter((tag) => !isPrerelease(tag));
|
|
360
360
|
opts.from = allReleaseTags[allReleaseTags.length - 2];
|
|
361
361
|
}
|