(names: string[])
| 185 | } |
| 186 | |
| 187 | function renderRegistry(names: string[]) { |
| 188 | return `import type { DatabaseMigration } from "./migration" |
| 189 | |
| 190 | export 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 | } |