Skip to content

Commit 97c2a7b

Browse files
committed
feat(migrate-ts): export the migration runner from the package entry
1 parent 7bd854d commit 97c2a7b

2 files changed

Lines changed: 14 additions & 0 deletions

File tree

server/typescript/packages/migrate-ts/src/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,3 +68,6 @@ export {
6868
type D1Binding,
6969
type WranglerConfig,
7070
} from "./wrangler-config.js";
71+
72+
// Migration apply+tracking runner (ADR-0016).
73+
export * from "./runner/index.js";
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
// test/runner/public-api.test.ts
2+
import { test, expect } from "bun:test";
3+
import * as mt from "../../src/index.js";
4+
5+
test("runner is exported from the package entry", () => {
6+
expect(typeof mt.applyMigrations).toBe("function");
7+
expect(typeof mt.rollbackTo).toBe("function");
8+
expect(typeof mt.PgHistoryStore).toBe("function");
9+
expect(typeof mt.PgExecutor).toBe("function");
10+
expect(typeof mt.loadMigrations).toBe("function");
11+
});

0 commit comments

Comments
 (0)