mirror of
https://github.com/anomalyco/opencode.git
synced 2026-07-19 18:53:30 +00:00
fix(core): stabilize migration registry generation (#30105)
This commit is contained in:
parent
f401f01c05
commit
331bed2469
1 changed files with 5 additions and 3 deletions
|
|
@ -113,8 +113,10 @@ function escapeTemplate(line: string) {
|
|||
function renderRegistry(names: string[]) {
|
||||
return `import type { DatabaseMigration } from "./migration"
|
||||
|
||||
export const migrations = (await Promise.all([
|
||||
${names.map((name) => ` import("./migration/${name}"),`).join("\n")}
|
||||
])).map((module) => module.default) satisfies DatabaseMigration.Migration[]
|
||||
export const migrations = (
|
||||
await Promise.all([
|
||||
${names.map((name) => ` import("./migration/${name}"),`).join("\n")}
|
||||
])
|
||||
).map((module) => module.default) satisfies DatabaseMigration.Migration[]
|
||||
`
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue