diff --git a/packages/cli/src/helpers/registry.ts b/packages/cli/src/helpers/registry.ts index eaeccef..abdb475 100644 --- a/packages/cli/src/helpers/registry.ts +++ b/packages/cli/src/helpers/registry.ts @@ -29,8 +29,9 @@ export async function getComponentURL( export async function getDirComponentURL( registry: Registry, component: RegistryComponent & {type: 'dir'}, + files?: string[], ): Promise { const base = registry.base + registry.paths.components.replace('{componentName}', component.name) - return component.files.map((filename) => base + '/' + filename) + return (files ?? component.files).map((filename) => base + '/' + filename) }