diff --git a/packages/cli/src/helpers/registry.ts b/packages/cli/src/helpers/registry.ts index 7c795f5..d9c6dff 100644 --- a/packages/cli/src/helpers/registry.ts +++ b/packages/cli/src/helpers/registry.ts @@ -34,12 +34,12 @@ export async function getComponentRealname( export async function getComponentLibVersion( registry: Registry, componentName: keyof (typeof registry)['components'], -): Promise { +): Promise<{ok: boolean; libVersion: string}> { const libVersion = registry.components[componentName].libVersion if (!registry.lib.includes(libVersion)) { - return null + return {ok: false, libVersion} } - return libVersion + return {ok: true, libVersion} } export async function getLibURL(registry: Registry, version: string): Promise {