Skip to content

Commit

Permalink
perf(cli): abort generating changelog earlier
Browse files Browse the repository at this point in the history
  • Loading branch information
hasundue committed Aug 2, 2024
1 parent d2c75b9 commit de035e4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cli/src/changelog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ export async function printChangelog(
return;
}
const messages = await compareCommits(repo, oldest, to);
if (!messages.length) {
// Couldn't find tags for the versions
return;
}
const root = await resolvePackageRoot(repo, pkg, to);
if (!root) {
// The package seems to be generated dynamically on publish
Expand Down

0 comments on commit de035e4

Please sign in to comment.