Skip to content

Commit 9ae6b55

Browse files
committed
fix(projects): fix createOptions
1 parent 4a1b309 commit 9ae6b55

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/options.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ export async function createOptions(options?: Partial<ChangelogOption>) {
9191
opts.prerelease ||= isPrerelease(opts.to);
9292

9393
const isFromPrerelease = isPrerelease(opts.from);
94-
if (!opts.prerelease && isFromPrerelease) {
94+
if (!isPrerelease(newVersion) && isFromPrerelease) {
9595
const allReleaseTags = opts.tags.filter(tag => !isPrerelease(tag));
9696

9797
opts.from = allReleaseTags[allReleaseTags.length - 2];

0 commit comments

Comments
 (0)