feat(reporters): pass the CLI's version number to reporters (#38)

This commit is contained in:
Joakim Carlstein 2023-12-14 13:11:55 +01:00 committed by GitHub
parent bf34cc427a
commit bad4e252f3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 32 additions and 7 deletions

View file

@ -365,8 +365,7 @@ Commands:
if (command) {
console.error(`Unknown command: ${command}\n`);
} else if (values.version) {
const { getPackageInfo } = await import('./get-package-info.js');
const { version } = await getPackageInfo();
const { version } = await import('./get-package-info.js');
console.log(version);
process.exitCode = 0;
return;