Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion biome.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@
"vtex/**",
"resend/**",
"website/**",
"vitest.config.ts"
"vitest.config.ts",
"registry.ts"
]
}
}
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"type": "module",
"description": "Deco commerce apps for TanStack Start - Shopify, VTEX, commerce types, analytics utils",
"exports": {
"./registry": "./registry.ts",
Comment thread
cubic-dev-ai[bot] marked this conversation as resolved.
"./commerce/types": "./commerce/types/commerce.ts",
"./commerce/app-types": "./commerce/app-types.ts",
"./commerce/resolve": "./commerce/resolve.ts",
Expand Down Expand Up @@ -87,6 +88,7 @@
"url": "https://github.com/decocms/apps-start.git"
},
"files": [
"registry.ts",
"commerce/",
"shopify/",
"vtex/",
Expand Down
13 changes: 13 additions & 0 deletions registry.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/**
* App registry — maps CMS block keys to their module loaders.
*
* @decocms/start imports this registry instead of hardcoding known apps.
* To register a new app, add an entry here and it will be auto-discovered
* by the framework's `autoconfigApps()`.
*/
export const apps: Record<string, () => Promise<{ configure: (...args: never[]) => unknown }>> = {
"deco-vtex": () => import("./vtex/mod"),
"deco-shopify": () => import("./shopify/mod"),
"deco-resend": () => import("./resend/mod"),
"deco-website": () => import("./website/mod"),
};
Loading