From 8a8508c8fbb18170c7f1da2d998c66816ad97054 Mon Sep 17 00:00:00 2001 From: p-sw Date: Tue, 11 Jun 2024 13:06:06 +0900 Subject: [PATCH] refactor(cli): update return value in registry helper This commit updates the registry helper in the CLI package. It now returns the full component name from the registry, instead of only returning the last part of the component's path. --- packages/cli/src/helpers/registry.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/cli/src/helpers/registry.ts b/packages/cli/src/helpers/registry.ts index 3c9f619..9c015dc 100644 --- a/packages/cli/src/helpers/registry.ts +++ b/packages/cli/src/helpers/registry.ts @@ -28,5 +28,5 @@ export async function getComponentRealname( registry: Registry, componentName: keyof Registry['components'], ): Promise { - return registry.components[componentName].split('/').pop() ?? '' + return registry.components[componentName] }