From df5c290145066f19d78d9e0b666529dcadb1de3e Mon Sep 17 00:00:00 2001 From: Sam Willis Date: Thu, 14 Nov 2024 10:04:24 +0000 Subject: [PATCH] fix: make pglite compatible with @jest-environment: node (#424) * Make pglite compatible with @jest-environment: node * Add changeset --------- Co-authored-by: Ethan Reesor --- .changeset/gentle-olives-hope.md | 5 +++++ packages/pglite/src/postgresMod.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/gentle-olives-hope.md diff --git a/.changeset/gentle-olives-hope.md b/.changeset/gentle-olives-hope.md new file mode 100644 index 00000000..de64cab8 --- /dev/null +++ b/.changeset/gentle-olives-hope.md @@ -0,0 +1,5 @@ +--- +'@electric-sql/pglite': patch +--- + +Make pglite compatible with @jest-environment: node diff --git a/packages/pglite/src/postgresMod.ts b/packages/pglite/src/postgresMod.ts index 5eb7a1ea..845a0ee7 100644 --- a/packages/pglite/src/postgresMod.ts +++ b/packages/pglite/src/postgresMod.ts @@ -1,4 +1,4 @@ -import PostgresModFactory from '../release/postgres.js' +import PostgresModFactory from '../release/postgres' type IDBFS = Emscripten.FileSystemType & { quit: () => void