MCPcopy
hub / github.com/anomalyco/opencode / renderRegistry

Function renderRegistry

packages/core/script/migration.ts:187–196  ·  view source on GitHub ↗
(names: string[])

Source from the content-addressed store, hash-verified

185}
186
187function renderRegistry(names: string[]) {
188 return `import type { DatabaseMigration } from "./migration"
189
190export const migrations = (
191 await Promise.all([
192${names.map((name) => ` import("./migration/${name}"),`).join("\n")}
193 ])
194).map((module) => module.default) satisfies DatabaseMigration.Migration[]
195`
196}

Callers 2

generateFunction · 0.85
checkFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected