From 4204bea2b32c5b17cd956d675a6770ae3219bec2 Mon Sep 17 00:00:00 2001 From: Flea Flicker Date: Thu, 21 May 2026 02:24:42 +0000 Subject: [PATCH] fix(GRO-1395): add drizzle-orm and postgres to root package.json Add drizzle-orm ^0.38.4 and postgres ^3.4.5 to root package.json dependencies so that pnpm --frozen-lockfile install in CI makes them available at the root node_modules level. apps/api is not a pnpm workspace member (workspace declares packages: ["apps/*"]), so CI's pnpm install does not reach into apps/api/node_modules/. Adding these deps to the root package.json fixes the ERR_MODULE_NOT_FOUND error that Vitest encountered when running tests under pnpm --frozen-lockfile. Also moves drizzle-orm and postgres from apps/api/devDependencies to dependencies per the issue spec. Co-Authored-By: Paperclip --- package.json | 2 ++ pnpm-lock.yaml | 17 +++++++++++++---- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 9e12347..3ee2ac8 100644 --- a/package.json +++ b/package.json @@ -19,9 +19,11 @@ "@hono/node-server": "^1.13.7", "@hono/zod-validator": "^0.7.6", "better-auth": "^1.5.6", + "drizzle-orm": "^0.38.4", "hono": "^4.6.17", "node-cron": "^3.0.3", "nodemailer": "^6.9.16", + "postgres": "^3.4.5", "stripe": "^22.0.0", "telnyx": "^1.23.0", "zod": "^4.3.6" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 34239cd..8d3451b 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -28,7 +28,10 @@ importers: version: 0.7.6(hono@4.12.18)(zod@4.4.3) better-auth: specifier: ^1.5.6 - version: 1.6.10(vitest@3.2.4(@types/node@22.19.18)(tsx@4.21.0)) + version: 1.6.10(drizzle-orm@0.38.4(kysely@0.28.17)(postgres@3.4.9))(vitest@3.2.4(@types/node@22.19.18)(tsx@4.21.0)) + drizzle-orm: + specifier: ^0.38.4 + version: 0.38.4(kysely@0.28.17)(postgres@3.4.9) hono: specifier: ^4.6.17 version: 4.12.18 @@ -38,6 +41,9 @@ importers: nodemailer: specifier: ^6.9.16 version: 6.10.1 + postgres: + specifier: ^3.4.5 + version: 3.4.9 stripe: specifier: ^22.0.0 version: 22.1.1(@types/node@22.19.18) @@ -2924,10 +2930,12 @@ snapshots: nanostores: 1.3.0 zod: 4.4.3 - '@better-auth/drizzle-adapter@1.6.10(@better-auth/core@1.6.10(@better-auth/utils@0.4.0)(@better-fetch/fetch@1.1.21)(better-call@1.3.5(zod@4.4.3))(jose@6.2.3)(kysely@0.28.17)(nanostores@1.3.0))(@better-auth/utils@0.4.0)': + '@better-auth/drizzle-adapter@1.6.10(@better-auth/core@1.6.10(@better-auth/utils@0.4.0)(@better-fetch/fetch@1.1.21)(better-call@1.3.5(zod@4.4.3))(jose@6.2.3)(kysely@0.28.17)(nanostores@1.3.0))(@better-auth/utils@0.4.0)(drizzle-orm@0.38.4(kysely@0.28.17)(postgres@3.4.9))': dependencies: '@better-auth/core': 1.6.10(@better-auth/utils@0.4.0)(@better-fetch/fetch@1.1.21)(better-call@1.3.5(zod@4.4.3))(jose@6.2.3)(kysely@0.28.17)(nanostores@1.3.0) '@better-auth/utils': 0.4.0 + optionalDependencies: + drizzle-orm: 0.38.4(kysely@0.28.17)(postgres@3.4.9) '@better-auth/kysely-adapter@1.6.10(@better-auth/core@1.6.10(@better-auth/utils@0.4.0)(@better-fetch/fetch@1.1.21)(better-call@1.3.5(zod@4.4.3))(jose@6.2.3)(kysely@0.28.17)(nanostores@1.3.0))(@better-auth/utils@0.4.0)(kysely@0.28.17)': dependencies: @@ -3919,10 +3927,10 @@ snapshots: balanced-match@4.0.4: {} - better-auth@1.6.10(vitest@3.2.4(@types/node@22.19.18)(tsx@4.21.0)): + better-auth@1.6.10(drizzle-orm@0.38.4(kysely@0.28.17)(postgres@3.4.9))(vitest@3.2.4(@types/node@22.19.18)(tsx@4.21.0)): dependencies: '@better-auth/core': 1.6.10(@better-auth/utils@0.4.0)(@better-fetch/fetch@1.1.21)(better-call@1.3.5(zod@4.4.3))(jose@6.2.3)(kysely@0.28.17)(nanostores@1.3.0) - '@better-auth/drizzle-adapter': 1.6.10(@better-auth/core@1.6.10(@better-auth/utils@0.4.0)(@better-fetch/fetch@1.1.21)(better-call@1.3.5(zod@4.4.3))(jose@6.2.3)(kysely@0.28.17)(nanostores@1.3.0))(@better-auth/utils@0.4.0) + '@better-auth/drizzle-adapter': 1.6.10(@better-auth/core@1.6.10(@better-auth/utils@0.4.0)(@better-fetch/fetch@1.1.21)(better-call@1.3.5(zod@4.4.3))(jose@6.2.3)(kysely@0.28.17)(nanostores@1.3.0))(@better-auth/utils@0.4.0)(drizzle-orm@0.38.4(kysely@0.28.17)(postgres@3.4.9)) '@better-auth/kysely-adapter': 1.6.10(@better-auth/core@1.6.10(@better-auth/utils@0.4.0)(@better-fetch/fetch@1.1.21)(better-call@1.3.5(zod@4.4.3))(jose@6.2.3)(kysely@0.28.17)(nanostores@1.3.0))(@better-auth/utils@0.4.0)(kysely@0.28.17) '@better-auth/memory-adapter': 1.6.10(@better-auth/core@1.6.10(@better-auth/utils@0.4.0)(@better-fetch/fetch@1.1.21)(better-call@1.3.5(zod@4.4.3))(jose@6.2.3)(kysely@0.28.17)(nanostores@1.3.0))(@better-auth/utils@0.4.0) '@better-auth/mongo-adapter': 1.6.10(@better-auth/core@1.6.10(@better-auth/utils@0.4.0)(@better-fetch/fetch@1.1.21)(better-call@1.3.5(zod@4.4.3))(jose@6.2.3)(kysely@0.28.17)(nanostores@1.3.0))(@better-auth/utils@0.4.0) @@ -3939,6 +3947,7 @@ snapshots: nanostores: 1.3.0 zod: 4.4.3 optionalDependencies: + drizzle-orm: 0.38.4(kysely@0.28.17)(postgres@3.4.9) vitest: 3.2.4(@types/node@22.19.18)(tsx@4.21.0) transitivePeerDependencies: - '@cloudflare/workers-types'