Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions scripts/build-electron.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
Loading