From 4c394d54689f03bbca54a083c7e126d9c83e6ed7 Mon Sep 17 00:00:00 2001 From: beyondkmp Date: Sat, 7 Dec 2024 00:36:05 +0800 Subject: [PATCH] fix: install all dependencies to fix building within NPM workspaces (#8715) Fixes https://github.com/electron-userland/electron-builder/issues/7103. --- .changeset/small-windows-leave.md | 5 +++++ packages/app-builder-lib/src/util/yarn.ts | 1 - 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 .changeset/small-windows-leave.md diff --git a/.changeset/small-windows-leave.md b/.changeset/small-windows-leave.md new file mode 100644 index 00000000000..749ba9e72cd --- /dev/null +++ b/.changeset/small-windows-leave.md @@ -0,0 +1,5 @@ +--- +"app-builder-lib": patch +--- + +fix: does not work with NPM workspaces diff --git a/packages/app-builder-lib/src/util/yarn.ts b/packages/app-builder-lib/src/util/yarn.ts index 3f7b9536da6..da721ab266f 100644 --- a/packages/app-builder-lib/src/util/yarn.ts +++ b/packages/app-builder-lib/src/util/yarn.ts @@ -100,7 +100,6 @@ async function installDependencies(config: Configuration, appDir: string, option if (process.env.NPM_NO_BIN_LINKS === "true") { execArgs.push("--no-bin-links") } - execArgs.push("--production") } if (!isRunningYarn(execPath)) {