refactor(cli): move the default reporter into a separate "reporters" folder

This commit is contained in:
Joakim Carlstein 2023-11-22 13:23:51 +01:00
parent da1eee3c75
commit 4f8fb441f8
3 changed files with 2 additions and 2 deletions

View file

@ -7,7 +7,7 @@ import { BadOptionError, MissingArgumentsError, MissingOptionError, UnexpectedEr
import { type Config } from './types.js'; import { type Config } from './types.js';
import { withLeadingPeriod } from './with-leading-period.js'; import { withLeadingPeriod } from './with-leading-period.js';
const lazyDefaultReporter = async () => import('./plugin-reporter-default.js'); const lazyDefaultReporter = async () => import('./reporters/default.js');
export default async function newCommand( export default async function newCommand(
{ directory, template, reporter: reporterConfig, plugins = [], extension }: Config, { directory, template, reporter: reporterConfig, plugins = [], extension }: Config,

View file

@ -27,7 +27,7 @@ const getDuration = (start: [number, number]) => {
return seconds * 1000 + nanoseconds / 1_000_000; return seconds * 1000 + nanoseconds / 1_000_000;
}; };
const lazyDefaultReporter = async () => import('./plugin-reporter-default.js'); const lazyDefaultReporter = async () => import('./reporters/default.js');
export default async function upCommand({ export default async function upCommand({
storage: storageConfig, storage: storageConfig,