UNPKG

everything-dev

Version:

A consolidated product package for building Module Federation apps with oRPC APIs.

22 lines (20 loc) • 775 B
import { BosConfigSchema } from "../../types.mjs"; import { resolveConfigComposableEntries } from "../resolution/load.mjs"; import { walkExtendsChain } from "../resolution/session.mjs"; //#region src/services/registry/published.ts async function resolvePublishedConfig(account, gateway, registry) { try { const { config: merged } = await walkExtendsChain(`bos://${account}/${gateway}`, { env: "production", registry, visit: async () => {} }); return resolveConfigComposableEntries(BosConfigSchema.parse(merged), process.cwd(), "production"); } catch (error) { if (error instanceof Error && error.message.startsWith("No config found")) return null; throw error; } } //#endregion export { resolvePublishedConfig }; //# sourceMappingURL=published.mjs.map