We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c76e7bb commit 6c5b4f0Copy full SHA for 6c5b4f0
lib/util/resolveCommand.js
@@ -8,7 +8,7 @@ function resolveCommandAttempt(parsed, withoutPathExt) {
8
const cwd = process.cwd();
9
const hasCustomCwd = parsed.options.cwd != null;
10
// Worker threads do not have process.chdir()
11
- const shouldSwitchCwd = hasCustomCwd && process.chdir !== undefined;
+ const shouldSwitchCwd = hasCustomCwd && process.chdir !== undefined && !process.chdir.disabled;
12
13
// If a custom `cwd` was specified, we need to change the process cwd
14
// because `which` will do stat calls but does not support a custom cwd
0 commit comments