gtsoft-snail-job-admin/packages/scripts/src/commands/changelog.ts

11 lines
345 B
TypeScript
Raw Normal View History

2024-03-08 17:59:45 +08:00
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);
}
}