History

Fix published package imports (#934)

The vendored fumadb fork was published under the bare name "fumadb", which collides with the upstream npm package — so a published @executor-js/sdk would resolve the wrong dependency. Scope the package to @executor-js/fumadb and update every workspace dependency, import specifier, and the build filter to match.

Rhys Sullivan committed 5 months ago

Commit 17174c41 parent 2c8f2d037 files · +89 −80Browse files

Showing the changes to packages/kernel (3 of 37 files). Show all

Unified · Split

3 files
  1. packages/kernel/runtime-dynamic-worker/package.json +1 −1
  2. packages/kernel/runtime-dynamic-worker/scripts/pglite.ts +1 −1
  3. packages/kernel/runtime-dynamic-worker/src/integration.test.ts +6 −3
packages/kernel/runtime-dynamic-worker/package.json+1−1
@@ -23,11 +23,11 @@ · 22 unmodified lines
2323 "@electric-sql/pglite": "^0.4.4",
2424 "@electric-sql/pglite-socket": "^0.1.4",
2525 "@executor-js/execution": "workspace:*",
26+ "@executor-js/fumadb": "workspace:*",
2627 "@executor-js/plugin-openapi": "workspace:*",
2728 "@executor-js/sdk": "workspace:*",
2829 "@types/node": "catalog:",
2930 "drizzle-orm": "catalog:",
30− "fumadb": "workspace:*",
3131 "postgres": "^3.4.9",
3232 "vitest": "catalog:",
3333 "wrangler": "^4.81.0"
packages/kernel/runtime-dynamic-worker/scripts/pglite.ts+1−1
@@ -7,7 +7,7 @@ import { drizzle, type PgliteDatabase } from "drizzle-orm/pglite"; · 6 unmodified lines
77 import {
88 createDrizzleRuntimeSchemaFromTables,
99 ensureDrizzleRuntimeSchemaFromTables,
10−} from "fumadb/adapters/drizzle";
10+} from "@executor-js/fumadb/adapters/drizzle";
1111
1212 import type { FumaTables } from "@executor-js/sdk";
1313
packages/kernel/runtime-dynamic-worker/src/integration.test.ts+6−3
@@ -21,9 +21,12 @@ import * as Effect from "effect/Effect"; · 20 unmodified lines
2121 import * as Layer from "effect/Layer";
2222 import * as Predicate from "effect/Predicate";
2323 import { HttpClient, HttpClientResponse, type HttpClientRequest } from "effect/unstable/http";
24−import { fumadb } from "fumadb";
25−import { createDrizzleRuntimeSchemaFromTables, drizzleAdapter } from "fumadb/adapters/drizzle";
26−import { schema as fumaSchema } from "fumadb/schema";
24+import { fumadb } from "@executor-js/fumadb";
25+import {
26+ createDrizzleRuntimeSchemaFromTables,
27+ drizzleAdapter,
28+} from "@executor-js/fumadb/adapters/drizzle";
29+import { schema as fumaSchema } from "@executor-js/fumadb/schema";
2730 import postgres from "postgres";
2831
2932 import {