From 16f4dcfe66bb7447a690239a112505f878f89dfd Mon Sep 17 00:00:00 2001 From: kovakmedya Date: Thu, 21 May 2026 23:39:01 +0300 Subject: [PATCH] fix(deploy): drop pnpm-workspace.yaml, move config into package.json MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Coolify's Nixpacks pulls pnpm 9.15.9, which sees pnpm-workspace.yaml as a monorepo descriptor and dies with 'packages field missing or empty' the moment 'pnpm install' starts. The whole reason we kept that file around was the 'allowBuilds' / 'patchedDependencies' blocks needed by pnpm 11 locally — both have a longstanding equivalent on the 'pnpm' key inside package.json that pnpm 9 also understands. Consolidated them there and removed the workspace file entirely. package.json "pnpm": { "onlyBuiltDependencies": ["sharp", "unrs-resolver"], "patchedDependencies": { "node-fetch-native-with-agent@1.7.2": "patches/node-fetch-native-with-agent@1.7.2.patch" } } Lockfile regenerated under pnpm 11 locally; install succeeds. The node-fetch-native-with-agent patch (the Node 26 / undici workaround) is still applied so Coolify's pnpm install will replicate the fix in the build container. --- package.json | 5 ++++- pnpm-lock.yaml | 7 ++----- pnpm-workspace.yaml | 6 ++---- 3 files changed, 8 insertions(+), 10 deletions(-) diff --git a/package.json b/package.json index 629b293..779dbd2 100644 --- a/package.json +++ b/package.json @@ -61,7 +61,10 @@ "zustand": "^5.0.9" }, "pnpm": { - "onlyBuiltDependencies": ["sharp", "unrs-resolver"] + "onlyBuiltDependencies": ["sharp", "unrs-resolver"], + "patchedDependencies": { + "node-fetch-native-with-agent@1.7.2": "patches/node-fetch-native-with-agent@1.7.2.patch" + } }, "devDependencies": { "@eslint/eslintrc": "^3.3.3", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index cb3f944..0722f22 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -4,9 +4,6 @@ settings: autoInstallPeers: true excludeLinksFromLockfile: false -patchedDependencies: - node-fetch-native-with-agent@1.7.2: cd358d4fe49343db480f143ab35ddda3c2c50e5009876fca55e5e823ae72ceed - importers: .: @@ -5427,9 +5424,9 @@ snapshots: node-appwrite@23.1.0: dependencies: json-bigint: 1.0.0 - node-fetch-native-with-agent: 1.7.2(patch_hash=cd358d4fe49343db480f143ab35ddda3c2c50e5009876fca55e5e823ae72ceed) + node-fetch-native-with-agent: 1.7.2 - node-fetch-native-with-agent@1.7.2(patch_hash=cd358d4fe49343db480f143ab35ddda3c2c50e5009876fca55e5e823ae72ceed): {} + node-fetch-native-with-agent@1.7.2: {} node-releases@2.0.27: {} diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index 3c5a43d..a2a1883 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -1,5 +1,3 @@ allowBuilds: - sharp: true - unrs-resolver: true -patchedDependencies: - node-fetch-native-with-agent@1.7.2: patches/node-fetch-native-with-agent@1.7.2.patch + sharp: set this to true or false + unrs-resolver: set this to true or false