The complete open source platform to run your entire marketplace. Storefront, vendor panel, admin console, and integrations in one enterprise-grade platform you own.
TypeScript b2b-marketplacecomposable-commerceecommerceenterpriseheadless-commercemarketplacemedusamedusajsmulti-vendortypescript
refactor: update registry item schema URLs and remove deprecated JSON schema files
vholik3bc02daf3558
diff --git a/packages/cli/src/commands/build.ts b/packages/cli/src/commands/build.tsindex ffd59cfeb..d171eb16f 100644--- a/packages/cli/src/commands/build.ts+++ b/packages/cli/src/commands/build.ts@@ -122,7 +122,7 @@ async function buildRegistry(opts: z.infer<typeof buildOptionsSchema>) {// Add the schema to the registry item.registryItem["$schema"] =- "https://mercurjs.com/schema/registry-item.json";+ "https://raw.githubusercontent.com/mercurjs/mercur/new/packages/registry/schema/registry-item.json";for (const file of registryItem.files) {const absPath = path.resolve(resolvePaths.cwd, file.path);@@ -173,7 +173,7 @@ async function buildRegistry(opts: z.infer<typeof buildOptionsSchema>) {)} items:`).succeed();for (const item of resolvedRegistry.items) {- logger.log(` - ${item.name} (${highlighter.info(item.type)})`);+ logger.log(` - ${item.name}`);for (const file of item.files ?? []) {logger.log(` - ${file.path}`);}diff --git a/packages/cli/src/registry/constants.ts b/packages/cli/src/registry/constants.tsindex 680cd69d4..76b87c31a 100644--- a/packages/cli/src/registry/constants.ts+++ b/packages/cli/src/registry/constants.ts@@ -6,7 +6,7 @@ import type { registryConfigSchema } from "./schema";export const REGISTRY_URL =process.env.REGISTRY_URL ??// todo: change to main branch- "https://raw.githubusercontent.com/mercurjs/mercur/new/packages/registry/public/r";+ "https://raw.githubusercontent.com/mercurjs/mercur/new/packages/registry/r";// Built-in registries that are always available and cannot be overriddenexport const BUILTIN_REGISTRIES: z.infer<typeof registryConfigSchema> = {diff --git a/packages/registry/public/schema/registry-item.json b/packages/registry/schema/registry-item.jsonsimilarity index 100%rename from packages/registry/public/schema/registry-item.jsonrename to packages/registry/schema/registry-item.jsondiff --git a/packages/registry/public/schema/registry.json b/packages/registry/schema/registry.jsonsimilarity index 92%rename from packages/registry/public/schema/registry.jsonrename to packages/registry/schema/registry.jsonindex 304cf7009..cc971e933 100644--- a/packages/registry/public/schema/registry.json+++ b/packages/registry/schema/registry.json@@ -15,7 +15,7 @@"type": "array","description": "The registry items.","items": {- "$ref": "https://raw.githubusercontent.com/mercurjs/mercur/new/packages/registry/public/schema/registry-item.json"+ "$ref": "https://raw.githubusercontent.com/mercurjs/mercur/new/packages/registry/schema/registry-item.json"},"minItems": 1,"uniqueItems": true