feat(projects): packages/scripts: add command changelog,release

This commit is contained in:
Soybean
2024-01-21 18:17:11 +08:00
parent 840e7f99fc
commit dafb6fa06f
10 changed files with 291 additions and 71 deletions

View File

@@ -0,0 +1,10 @@
import { generateChangelog, generateTotalChangelog } from '@soybeanjs/changelog';
import type { ChangelogOption } from '@soybeanjs/changelog';
export async function genChangelog(options?: Partial<ChangelogOption>, total = false) {
if (total) {
await generateTotalChangelog(options);
} else {
await generateChangelog(options);
}
}