@effectstream/db 0.100.11 → 0.100.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@effectstream/db",
3
- "version": "0.100.11",
3
+ "version": "0.100.12",
4
4
  "license": "MIT",
5
5
  "homepage": "https://effectstream.github.io/docs/",
6
6
  "repository": {
@@ -21,11 +21,11 @@
21
21
  "./version": "./migrations/system-version.ts"
22
22
  },
23
23
  "dependencies": {
24
- "@effectstream/coroutine": "0.100.11",
25
- "@effectstream/log": "0.100.11",
26
- "@effectstream/runtime": "0.100.11",
27
- "@effectstream/sync": "0.100.11",
28
- "@effectstream/utils": "0.100.11",
24
+ "@effectstream/coroutine": "0.100.12",
25
+ "@effectstream/log": "0.100.12",
26
+ "@effectstream/runtime": "0.100.12",
27
+ "@effectstream/sync": "0.100.12",
28
+ "@effectstream/utils": "0.100.12",
29
29
  "@electric-sql/pglite": "^0.3.14",
30
30
  "@pgtyped/runtime": "2.4.2",
31
31
  "@pgtyped/parser": "2.4.2",
@@ -6,7 +6,7 @@
6
6
  import { spawn } from "node:child_process";
7
7
  import { resolve } from "node:path";
8
8
  import { existsSync } from "node:fs";
9
- import { fileURLToPath } from "node:url";
9
+
10
10
  import pg from "pg";
11
11
  import { startPglite, type PgliteHandle } from "./start-pglite.ts";
12
12
  import { waitForDb } from "./wait-for-db.ts";
@@ -123,7 +123,7 @@ async function runPgtyped(pgtypedBin: string, pgtypedConfigPath: string): Promis
123
123
  export async function main(options?: PgtypedUpdateOptions) {
124
124
  const userMigrations = options?.userMigrations ?? await resolveUserMigrations();
125
125
  const pgtypedConfigPath = options?.pgtypedConfigPath ?? "./pgtypedconfig.json";
126
- const pgtypedBin = options?.pgtypedBin ?? fileURLToPath(import.meta.resolve("@paima/pgtyped-cli"));
126
+ const pgtypedBin = options?.pgtypedBin ?? resolve(process.cwd(), "node_modules/@paima/pgtyped-cli/lib/index.js");
127
127
 
128
128
  console.log("🚀 Starting pgtyped-update...\n");
129
129