diff --git a/packages/cli/src/commands/add.ts b/packages/cli/src/commands/add.ts index 3fe0dfc..926283f 100644 --- a/packages/cli/src/commands/add.ts +++ b/packages/cli/src/commands/add.ts @@ -31,7 +31,7 @@ export default class Add extends Command { this.error('No component name provided. Please provide name of component you want to be installed.') } - const resolvedConfig = await validateConfig(this.log, await loadConfig(flags.config)) + const resolvedConfig = await validateConfig((message: string) => this.log(message), await loadConfig(flags.config)) const componentFolder = join(process.cwd(), resolvedConfig.paths.components) const sharedFile = join(process.cwd(), resolvedConfig.paths.shared) diff --git a/packages/cli/src/commands/list.ts b/packages/cli/src/commands/list.ts index 10c9bfb..4cc6a16 100644 --- a/packages/cli/src/commands/list.ts +++ b/packages/cli/src/commands/list.ts @@ -22,7 +22,7 @@ export default class List extends Command { const registrySpinner = ora('Fetching registry...') const getInstalledSpinner = ora('Getting installed components...') - const loadedConfig = await validateConfig(this.log, await loadConfig(flags.config)) + const loadedConfig = await validateConfig((message: string) => this.log(message), await loadConfig(flags.config)) registrySpinner.start() const unsafeRegistry = await getRegistry()