Skip to content

Commit 55db83d

Browse files
FrozenPandazclaude
andcommitted
fix(core): remove windowsHide from fork() calls where it is not typed
ForkOptions in @types/node does not include windowsHide, causing typecheck failures. Since fork() spawns Node.js processes (not shell commands), there is no console window to hide on Windows. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 5e62255 commit 55db83d

File tree

16 files changed

+16
-30
lines changed

16 files changed

+16
-30
lines changed

astro-docs/src/plugins/utils/cnw-generation.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ export async function loadCnwPackage(
4040
const child = fork(subprocessPath, [], {
4141
cwd: workspaceRoot,
4242
silent: true,
43-
windowsHide: true,
4443
});
4544

4645
let stdout = '';

packages/docker/src/release/version-utils.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,9 @@ function updateProjectVersion(
125125
const fullImageRef =
126126
nxDockerImageRefEnvOverride ?? `${newImageRef}:${newVersion}`;
127127
if (!isDryRun) {
128-
execSync(`docker tag ${imageRef} ${fullImageRef}`);
128+
execSync(`docker tag ${imageRef} ${fullImageRef}`, {
129+
windowsHide: true,
130+
});
129131
}
130132
const logs = isDryRun
131133
? [`Image would be tagged with ${fullImageRef} but dry run is enabled.`]

packages/expo/src/executors/export/export.impl.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ function exportAsync(
4747
{
4848
cwd: pathResolve(workspaceRoot, projectRoot),
4949
env: process.env,
50-
windowsHide: true,
5150
}
5251
);
5352

packages/expo/src/executors/prebuild/prebuild.impl.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ export function prebuildAsync(
5454
{
5555
cwd: join(workspaceRoot, projectRoot),
5656
env: process.env,
57-
windowsHide: true,
5857
}
5958
);
6059

packages/expo/src/executors/update/update.impl.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ function runCliUpdate(
4646
{
4747
cwd: pathResolve(workspaceRoot, projectRoot),
4848
env: process.env,
49-
windowsHide: true,
5049
}
5150
);
5251

packages/js/src/executors/node/node.impl.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,6 @@ export async function* nodeExecutor(
190190
NX_FILE_TO_RUN: fileToRunCorrectPath(fileToRun),
191191
NX_MAPPINGS: JSON.stringify(mappings),
192192
},
193-
windowsHide: true,
194193
}
195194
);
196195

@@ -307,7 +306,6 @@ export async function* nodeExecutor(
307306
{
308307
cwd: context.root,
309308
stdio: 'inherit',
310-
windowsHide: true,
311309
}
312310
);
313311
childProcess.once('exit', (code) => {

packages/js/src/executors/verdaccio/verdaccio.impl.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,6 @@ function startVerdaccio(
9797
: {}),
9898
},
9999
stdio: 'inherit',
100-
windowsHide: true,
101100
}
102101
);
103102

packages/js/src/plugins/jest/start-local-registry.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export function startLocalRegistry({
3535
}`.split(' '),
3636
...(storage ? [`--storage`, storage] : []),
3737
],
38-
{ stdio: 'pipe', windowsHide: true }
38+
{ stdio: 'pipe' }
3939
);
4040

4141
const listener = (data) => {

packages/nx/src/plugins/js/lock-file/lock-file.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,9 @@ export function getLockFilePath(packageManager: PackageManager): string {
242242
return BUN_LOCK_PATH;
243243
}
244244

245-
const bunVersion = execSync('bun --version').toString().trim();
245+
const bunVersion = execSync('bun --version', { windowsHide: true })
246+
.toString()
247+
.trim();
246248
// Version-based fallback
247249
if (gte(bunVersion, '1.2.0')) {
248250
return BUN_TEXT_LOCK_PATH;

packages/nx/src/tasks-runner/fork.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ const childProcess = fork(script, {
1818
stdio: ['inherit', 'inherit', 'inherit', 'ipc'],
1919
env: process.env,
2020
execArgv,
21-
windowsHide: true,
2221
});
2322

2423
const pseudoIPC = new PseudoIPCClient(pseudoIPCPath);

0 commit comments

Comments
 (0)