From 78fe5d9b0fb6d03d066bcab8958eb6e6f91bf280 Mon Sep 17 00:00:00 2001 From: p-sw Date: Sat, 15 Jun 2024 03:42:37 +0900 Subject: [PATCH] fix(cli): replace old getAvailableComponentNames to Object.keys --- packages/cli/src/commands/search.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/cli/src/commands/search.tsx b/packages/cli/src/commands/search.tsx index 141b87c..e5c708b 100644 --- a/packages/cli/src/commands/search.tsx +++ b/packages/cli/src/commands/search.tsx @@ -1,7 +1,7 @@ import {Command, Args, Flags} from '@oclif/core' import {render} from 'ink' import {SearchBox} from '../components/SearchBox.js' -import {getAvailableComponentNames, getRegistry} from '../helpers/registry.js' +import {getRegistry} from '../helpers/registry.js' import React from 'react' export default class Search extends Command { @@ -28,7 +28,7 @@ export default class Search extends Command { this.error(registryResult.message) } const registry = registryResult.registry - const componentNames = await getAvailableComponentNames(registry) + const componentNames = Object.keys(registry.components) await render(