UNPKG

@supernovaio/cli

Version:

Supernova.io Command Line Interface

23 lines (21 loc) 1.08 kB
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="373e25f3-5945-58a8-98df-1fc25b74cc13")}catch(e){}}(); import path from "node:path"; export function mapToSupernovaProperty(property, entryPath) { const defaultValue = property.defaultValue && typeof property.defaultValue === "object" && "value" in property.defaultValue ? String(property.defaultValue.value ?? "") : undefined; return { defaultValue, name: property.name, required: property.required, description: property.description, type: property.resolvedType, tags: property.tags, declarations: property.declarations?.map(declaration => ({ ...declaration, fileName: path.relative(entryPath, declaration.fileName), })), }; } //# sourceMappingURL=property.js.map //# debugId=373e25f3-5945-58a8-98df-1fc25b74cc13