gtsoft-snail-job-admin/packages/scripts/src/commands/changelog.ts
2024-03-08 17:59:45 +08:00

11 lines
345 B
TypeScript

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);
}
}