From 7a82c284fc086f66529d0db87103683862621363 Mon Sep 17 00:00:00 2001 From: p-sw Date: Tue, 11 Jun 2024 13:05:57 +0900 Subject: [PATCH] refactor(cli): update getComponentURL function in registry helper Change the way the component URL is formed in the getComponentURL function in the registry helper. Now, it appends the path instead of replacing it directly in the registry base. --- 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 b6cd780..3c9f619 100644 --- a/packages/cli/src/helpers/registry.ts +++ b/packages/cli/src/helpers/registry.ts @@ -21,7 +21,7 @@ export async function getAvailableComponentNames(registry: Registry): Promise { - return registry.base.replace('{componentName}', registry.components[componentName]) + return registry.base + registry.paths.components.replace('{componentName}', registry.components[componentName]) } export async function getComponentRealname(