From 0cefa29eca2eabfeeeb29683ad6be28ac891d8f5 Mon Sep 17 00:00:00 2001 From: MaxKless <34165455+MaxKless@users.noreply.github.com> Date: Thu, 27 Jun 2024 14:18:27 +0200 Subject: [PATCH] fix(core): add windowsHide for depencies-and-lockfile plugin with bun (#26718) ## Current Behavior Using bun as a package manager on windows causes cmd windows to pop up when the project graph is computed. ## Expected Behavior We shouldn't see any windows pop up. ## Related Issue(s) Fixes https://github.com/nrwl/nx-console/issues/2149 --- packages/nx/src/plugins/js/index.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/nx/src/plugins/js/index.ts b/packages/nx/src/plugins/js/index.ts index 2f4f565a839e7..1f8b6f3054b44 100644 --- a/packages/nx/src/plugins/js/index.ts +++ b/packages/nx/src/plugins/js/index.ts @@ -57,6 +57,7 @@ export const createNodes: CreateNodes = [ ? readFileSync(lockFilePath).toString() : execSync(`bun ${lockFilePath}`, { maxBuffer: 1024 * 1024 * 10, + windowsHide: true, }).toString(); const lockFileHash = getLockFileHash(lockFileContents); @@ -102,6 +103,7 @@ export const createDependencies: CreateDependencies = ( ? readFileSync(lockFilePath).toString() : execSync(`bun ${lockFilePath}`, { maxBuffer: 1024 * 1024 * 10, + windowsHide: true, }).toString(); const lockFileHash = getLockFileHash(lockFileContents);