Skip to content

The complete open source platform to run your entire marketplace. Storefront, vendor panel, admin console, and integrations in one enterprise-grade platform you own.

refactor: update registry block structure and change file types for consistency

vholik13a8c959163e
diff --git a/packages/registry/src/registry.ts b/packages/registry/src/registry.ts
index 2e20d188b..af292cfa1 100644
--- a/packages/registry/src/registry.ts
+++ b/packages/registry/src/registry.ts
@@ -5,44 +5,43 @@ const blocks = [
{
name: "block-1",
description: "A block with a test module, product-test link, and API route.",
- dependencies: [
- ],
+ dependencies: [],
registryDependencies: [],
files: [
{
path: "block-1/modules/test/index.ts",
- type: "registry:file",
+ type: "registry:module",
target: "src/modules/test/index.ts",
},
{
path: "block-1/modules/test/service.ts",
- type: "registry:file",
+ type: "registry:module",
target: "src/modules/test/service.ts",
},
{
path: "block-1/modules/test/models/test.ts",
- type: "registry:file",
+ type: "registry:module",
target: "src/modules/test/models/test.ts",
},
{
path: "block-1/links/product-test.ts",
- type: "registry:file",
+ type: "registry:link",
target: "src/links/product-test.ts",
},
{
path: "block-1/api/hello/test/route.ts",
- type: "registry:file",
+ type: "registry:api",
target: "src/api/hello/test/route.ts",
},
],
- categories: ["modules"],
+ categories: ["test"],
},
]
export const registry = {
- name: "shadcn/ui",
- homepage: "https://ui.shadcn.com",
+ name: "@mercurjs",
+ homepage: "https://mercurjs.com",
items: z.array(registryItemSchema).parse(
blocks
),