fix(nx-plugin): runNxCommand should default to using tmpProjPath as the cwd (#16562)
This commit is contained in:
parent
200cf32733
commit
0193967b08
@ -18,7 +18,7 @@ export function runNxCommand(
|
||||
): string {
|
||||
function _runNxCommand(c) {
|
||||
const execSyncOptions: ExecOptions = {
|
||||
cwd: opts.cwd,
|
||||
cwd: opts.cwd ?? tmpProjPath(),
|
||||
env: { ...process.env, ...opts.env },
|
||||
};
|
||||
if (fileExists(tmpProjPath('package.json'))) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user