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