From cf534777af5fbb2ffd3e7a238a9f29f129347f3a Mon Sep 17 00:00:00 2001 From: Arlind Date: Wed, 17 Jun 2026 14:40:29 +0200 Subject: [PATCH] fix(deploy): move onlyBuiltDependencies to pnpm-workspace.yaml MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit pnpm 10+ no longer reads pnpm.onlyBuiltDependencies from package.json and blocks build scripts by default, so better-sqlite3's native binary was never compiled on install (ERR_PNPM_IGNORED_BUILDS) — the SSR server would crash at runtime. Allow-list the native/build-script deps here so every `pnpm install` (including scripts/deploy.sh) builds them. Co-Authored-By: Claude Opus 4.8 (1M context) --- pnpm-workspace.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 pnpm-workspace.yaml diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml new file mode 100644 index 0000000..8a0f315 --- /dev/null +++ b/pnpm-workspace.yaml @@ -0,0 +1,9 @@ +# pnpm 10+ moved several settings out of package.json's "pnpm" field into +# this file. `onlyBuiltDependencies` allow-lists packages permitted to run +# install/build scripts (pnpm now blocks build scripts by default). Without +# this, better-sqlite3's native binary is never compiled and the server +# crashes at runtime with ERR_DLOPEN_FAILED / NODE_MODULE_VERSION mismatch. +onlyBuiltDependencies: + - better-sqlite3 + - esbuild + - sharp