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
This commit is contained in:
MaxKless 2024-06-27 14:18:27 +02:00 committed by GitHub
parent acddf894a4
commit 0cefa29eca
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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);