Update enum definition for type safety

- Changed enum to use 'as const' for better type inference
- Ensured more robust handling of extension publish sources
This commit is contained in:
Huakun Shen 2025-03-26 09:05:57 -04:00
parent dda783b9f6
commit c86778bf3a
No known key found for this signature in database

View File

@ -5,7 +5,7 @@ import { ExtPackageJson, KunkunExtManifest } from "./manifest"
export const ExtPublishSourceTypeEnum = {
jsr: "jsr",
npm: "npm"
}
} as const
export const ExtPublishMetadata = v.object({
source: v.optional(v.string("Source of the extension (e.g. url to package)")),