From a95d423bd49b77a04876a6356f134e2ee7112936 Mon Sep 17 00:00:00 2001 From: Austin Turner Date: Thu, 20 Aug 2026 08:07:23 -0500 Subject: [PATCH] chore(build): exclude patchedDependencies from target pnpm workspace --- scripts/build-electron.mjs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/scripts/build-electron.mjs b/scripts/build-electron.mjs index e27b1af94..ea2153ad6 100644 --- a/scripts/build-electron.mjs +++ b/scripts/build-electron.mjs @@ -124,8 +124,11 @@ function prepareTargetPackageJson() { // Inherit root pnpm-workspace.yaml settings but reset `packages` to an empty list so // TARGET_DIR becomes a self-contained workspace root with no nested member packages. // This isolates the subsequent `pnpm add` calls from the parent repo's workspace/lockfile. - const targetWorkspace = { ...rootWorkspace, packages: [] }; - writeFileSync(TARGET_PNPM_WORKSPACE_PATH, dumpYaml(targetWorkspace)); + // Drop `patchedDependencies` too: it points at files under the root `patches/` directory, + // which isn't copied into TARGET_DIR, and the patched packages (e.g. dev-only lint tooling) + // aren't part of the desktop build's dependency set anyway. + const { patchedDependencies, ...targetWorkspace } = rootWorkspace; + writeFileSync(TARGET_PNPM_WORKSPACE_PATH, dumpYaml({ ...targetWorkspace, packages: [] })); } async function build() {