Skip to content

Commit 95d7f39

Browse files
committed
fix(prisma-next): restore readInstallSql re-export + guard contractSpace (typecheck)
The prior commit removed `readInstallSql` from eql-bundle-v3's re-export, but the live-test helpers (`test/live/helpers/eql-v3.ts`, `migration-apply-live-pg.test.ts`) import it from there — a TS2459 the vitest run misses (live suites are skipped) but the `typecheck` CI step catches. Re-export it. Also non-null-guard `contractSpace` in the new descriptor-injection test (`contractSpace!`), matching descriptor.test.ts. typecheck exits 0; 601 tests green. Claude-Session: https://claude.ai/code/session_01MxTTPaPP16m6br7Hoab94w
1 parent 1209425 commit 95d7f39

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

packages/prisma-next/src/migration/eql-bundle-v3.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@
3232
*/
3333
import { readInstallSql, releaseManifest } from '@cipherstash/eql/sql'
3434

35-
export { releaseManifest }
35+
// Re-exported for the live-test helpers, which read the same install SQL to set
36+
// up their databases (`test/live/helpers/eql-v3.ts`, `migration-apply-live-pg`).
37+
export { readInstallSql, releaseManifest }
3638

3739
/**
3840
* Placeholder the committed v3 baseline op carries in `execute[].sql` in place

packages/prisma-next/test/v3/migration-v3.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ describe('v3 baseline migration (20260601T0100_install_eql_v3_bundle)', () => {
6363
it('injects readInstallSql() from @cipherstash/eql into the descriptor at build time', () => {
6464
// control.ts swaps the placeholder for the install SQL of the pinned
6565
// @cipherstash/eql, so the applied SQL always matches the resolved version.
66-
const v3Baseline = cipherstashDescriptor.contractSpace.migrations[1]!
66+
const v3Baseline = cipherstashDescriptor.contractSpace!.migrations[1]!
6767
const op = (
6868
v3Baseline.ops as ReadonlyArray<{
6969
readonly id: string

0 commit comments

Comments
 (0)