Skip to content

Commit 4eb2f9b

Browse files
authored
fix(info): export getComponentInfo function for external access (#39)
- Made getComponentInfo function public by adding export keyword - Allows external modules to access component information retrieval logic - Maintains existing functionality while improving code reusability
1 parent fd00633 commit 4eb2f9b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/commands/info.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ function outputTextTableOrMarkdown(component: ComponentRecord, type: OutputForma
137137

138138
const COMMON_PROPS_EXCLUDED = new Set(['ConfigProvider'])
139139

140-
async function getComponentInfo(name: string, version: ResolvedVersion): Promise<ComponentRecord> {
140+
export async function getComponentInfo(name: string, version: ResolvedVersion): Promise<ComponentRecord> {
141141
const component = loadComponent(name, await loadVersionMetaData(version))
142142

143143
const commonProps = COMMON_PROPS_EXCLUDED.has(component.name) ? undefined : COMMON_PROPS

0 commit comments

Comments
 (0)