build: use bun for installs and pin better-auth core deps

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.
This commit is contained in:
2026-08-19 02:05:40 +08:00
parent 4af95b0f0f
commit d86d59b4a5
3 changed files with 21 additions and 7 deletions
+3 -1
View File
@@ -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"
}
}
+2
View File
@@ -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=="],
+14 -4
View File
@@ -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"
}
},
"packageManager": "bun@1.3.14"
}