15 lines
658 B
TypeScript
15 lines
658 B
TypeScript
import { PRODUCT_APP } from "../.generated/product-app.ts";
|
|
import { PRODUCT_CONTEXT_MODULES } from "../.generated/product-context-index.ts";
|
|
import { defineDeployableAppModule } from "./deployable-app-module.ts";
|
|
|
|
/**
|
|
* The deployable app this build produces. Its identity, budget and direct
|
|
* contexts all come from the generator's selected app (`--app=`/`PRODUCT_APP_ID`,
|
|
* or the single declared app), so the bundle only ever contains that app.
|
|
*/
|
|
export const TEMPLATE_APP_MODULE = defineDeployableAppModule({
|
|
id: PRODUCT_APP.id,
|
|
contexts: PRODUCT_CONTEXT_MODULES,
|
|
budget: Object.freeze({ maxContexts: PRODUCT_APP.maxContexts }),
|
|
} as const);
|