Skip to content

Commit

Permalink
fix(nx-plugin): runNxCommand should default to using tmpProjPath as t…
Browse files Browse the repository at this point in the history
…he cwd (#16562)
  • Loading branch information
AgentEnder authored Apr 26, 2023
1 parent 200cf32 commit 0193967
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/plugin/src/utils/testing-utils/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'))) {
Expand Down

1 comment on commit 0193967

@vercel
Copy link

@vercel vercel bot commented on 0193967 Apr 26, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

nx-dev – ./

nx-dev-nrwl.vercel.app
nx-five.vercel.app
nx-dev-git-master-nrwl.vercel.app
nx.dev

Please sign in to comment.