feat(reporters): pass the CLI's version number to reporters (#38)
This commit is contained in:
parent
bf34cc427a
commit
bad4e252f3
9 changed files with 32 additions and 7 deletions
|
|
@ -13,6 +13,7 @@ import { type Config } from '../types.js';
|
|||
import { getMigration } from '../get-migration.js';
|
||||
import { getDuration } from '../get-duration.js';
|
||||
import { exec } from '../exec.js';
|
||||
import { version } from '../get-package-info.js';
|
||||
|
||||
type ExtraFlags = {
|
||||
force?: boolean;
|
||||
|
|
@ -56,7 +57,7 @@ export default async function removeCommand(
|
|||
return 1;
|
||||
}
|
||||
|
||||
await reporter.onInit?.({ command: 'remove', cwd, dry: false, directory });
|
||||
await reporter.onInit?.({ command: 'remove', version, cwd, dry: false, directory });
|
||||
|
||||
const migrationFile = await getMigration(cwd, directory, name, !force);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue