diff --git a/packages/cli/src/helpers/registry.ts b/packages/cli/src/helpers/registry.ts index 9c015dc..dcecebd 100644 --- a/packages/cli/src/helpers/registry.ts +++ b/packages/cli/src/helpers/registry.ts @@ -21,12 +21,12 @@ export async function getAvailableComponentNames(registry: Registry): Promise { - return registry.base + registry.paths.components.replace('{componentName}', registry.components[componentName]) + return registry.base + registry.paths.components.replace('{componentName}', registry.components[componentName].name) } export async function getComponentRealname( registry: Registry, componentName: keyof Registry['components'], ): Promise { - return registry.components[componentName] + return registry.components[componentName].name }