From d86d59b4a5e0bdf62d37254dbf8162571afc5e75 Mon Sep 17 00:00:00 2001 From: Adrian Bonpin Date: Wed, 19 Aug 2026 02:05:40 +0800 Subject: [PATCH] build: use bun for installs and pin better-auth core deps MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Railpack builds the Dokploy app from the app's build path, which is apps/web — a dir with no bun.lock (it lives at the monorepo root), so Railpack fell back to npm. npm then resolved @better-auth/core's ^1.6.22 peer to 1.7.0 while the pinned plugins peer better-call@1.3.7, causing ERESOLVE and failing the build. - Declare packageManager: bun@1.3.14 at the root (Railpack's highest-priority signal; combined with removing the Dokploy build path, installs run 'bun install --frozen-lockfile' at the workspace root). - Add npm overrides (@better-auth/core 1.6.22, better-call 1.3.7) in root + apps/web as a safety net so any npm-based build resolves too. - Verified: isolated npm install resolves (698 pkgs), bun install is a no-op (1020 pkgs, versions unchanged), full next build passes. --- apps/web/package.json | 6 ++++-- bun.lock | 2 ++ package.json | 20 +++++++++++++++----- 3 files changed, 21 insertions(+), 7 deletions(-) diff --git a/apps/web/package.json b/apps/web/package.json index f10d2ef..07d25ef 100644 --- a/apps/web/package.json +++ b/apps/web/package.json @@ -84,6 +84,8 @@ ], "overrides": { "@types/react": "19.2.14", - "@types/react-dom": "19.2.3" + "@types/react-dom": "19.2.3", + "@better-auth/core": "1.6.22", + "better-call": "1.3.7" } -} \ No newline at end of file +} diff --git a/bun.lock b/bun.lock index 6bf0c36..4bb5fd5 100644 --- a/bun.lock +++ b/bun.lock @@ -106,8 +106,10 @@ "unrs-resolver", ], "overrides": { + "@better-auth/core": "1.6.22", "@types/react": "19.2.14", "@types/react-dom": "19.2.3", + "better-call": "1.3.7", }, "packages": { "@alloc/quick-lru": ["@alloc/quick-lru@5.2.0", "", {}, "sha512-UrcABB+4bUrFABwbluTIBErXwvbsU/V7TZWfmbgJfbkwiBuziS9gxdODUyuiecfdGQ85jglMW6juS3+z5TsKLw=="], diff --git a/package.json b/package.json index df448f7..84a0e42 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,11 @@ { "name": "deckyvault", "private": true, - "workspaces": ["apps/*", "packages/*", "plugins/*"], + "workspaces": [ + "apps/*", + "packages/*", + "plugins/*" + ], "scripts": { "dev": "bun run --filter @deckyvault/web dev", "build": "bun run --filter @deckyvault/web build", @@ -20,12 +24,18 @@ "plugin:release": "bun run --filter @deckyvault/plugin release", "plugin:deploy": "bun run --filter @deckyvault/plugin build && bash plugins/decky-vault/scripts/deploy.sh" }, - "trustedDependencies": ["sharp", "unrs-resolver"], + "trustedDependencies": [ + "sharp", + "unrs-resolver" + ], "overrides": { "@types/react": "19.2.14", - "@types/react-dom": "19.2.3" + "@types/react-dom": "19.2.3", + "@better-auth/core": "1.6.22", + "better-call": "1.3.7" }, "dependencies": { "better-auth": "1.6.22" - } -} \ No newline at end of file + }, + "packageManager": "bun@1.3.14" +}