fix(nx-plugin): runNxCommand should default to using tmpProjPath as the cwd (#16562)

This commit is contained in:
Craigory Coppola 2023-04-26 01:28:38 -04:00 committed by GitHub
parent 200cf32733
commit 0193967b08
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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'))) {