(directory: string)
| 113 | } |
| 114 | |
| 115 | async function generatedSql(directory: string) { |
| 116 | const generated = await generatedMigrations(directory) |
| 117 | if (generated.length !== 1) throw new Error(`Expected one full schema migration, found ${generated.length}.`) |
| 118 | return Bun.file(path.join(directory, generated[0]!, "migration.sql")).text() |
| 119 | } |
| 120 | |
| 121 | async function typescriptMigrations() { |
| 122 | return (await Array.fromAsync(new Bun.Glob("*.ts").scan({ cwd: tsDir }))) |
no test coverage detected