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
23 "@electric-sql/pglite": "^0.4.4",23 "@electric-sql/pglite": "^0.4.4",
24 "@electric-sql/pglite-socket": "^0.1.4",24 "@electric-sql/pglite-socket": "^0.1.4",
25 "@executor-js/execution": "workspace:*",25 "@executor-js/execution": "workspace:*",
26 "@executor-js/fumadb": "workspace:*",
26 "@executor-js/plugin-openapi": "workspace:*",27 "@executor-js/plugin-openapi": "workspace:*",
27 "@executor-js/sdk": "workspace:*",28 "@executor-js/sdk": "workspace:*",
28 "@types/node": "catalog:",29 "@types/node": "catalog:",
29 "drizzle-orm": "catalog:",30 "drizzle-orm": "catalog:",
30 "fumadb": "workspace:*",
31 "postgres": "^3.4.9",31 "postgres": "^3.4.9",
32 "vitest": "catalog:",32 "vitest": "catalog:",
33 "wrangler": "^4.81.0"33 "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
7import {7import {
8 createDrizzleRuntimeSchemaFromTables,8 createDrizzleRuntimeSchemaFromTables,
9 ensureDrizzleRuntimeSchemaFromTables,9 ensureDrizzleRuntimeSchemaFromTables,
10} from "fumadb/adapters/drizzle";10} from "@executor-js/fumadb/adapters/drizzle";
11 11
12import type { FumaTables } from "@executor-js/sdk";12import type { FumaTables } from "@executor-js/sdk";
13 13
packages/kernel/runtime-dynamic-worker/src/integration.test.ts+6−3
@@ -21,9 +21,12 @@ import * as Effect from "effect/Effect"; · 20 unmodified lines
21import * as Layer from "effect/Layer";21import * as Layer from "effect/Layer";
22import * as Predicate from "effect/Predicate";22import * as Predicate from "effect/Predicate";
23import { HttpClient, HttpClientResponse, type HttpClientRequest } from "effect/unstable/http";23import { HttpClient, HttpClientResponse, type HttpClientRequest } from "effect/unstable/http";
24import { fumadb } from "fumadb";24import { fumadb } from "@executor-js/fumadb";
25import { createDrizzleRuntimeSchemaFromTables, drizzleAdapter } from "fumadb/adapters/drizzle";25import {
26import { schema as fumaSchema } from "fumadb/schema";26 createDrizzleRuntimeSchemaFromTables,
27 drizzleAdapter,
28} from "@executor-js/fumadb/adapters/drizzle";
29import { schema as fumaSchema } from "@executor-js/fumadb/schema";
27import postgres from "postgres";30import postgres from "postgres";
28 31
29import {32import {