Skip to content

Commit

Permalink
fix(misc): only prompt for nx-cloud when using the default runner
Browse files Browse the repository at this point in the history
Closes #4295
  • Loading branch information
vsavkin committed Dec 18, 2020
1 parent 86b5c5c commit f0cf91d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/workspace/src/command-line/prompt-for-nx-cloud.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ export async function promptForNxCloud(scan: boolean) {
if (!scan) return;

const nxJson = readNxJson();
const nxCloudRunnerIsUsed = Object.values(nxJson.tasksRunnerOptions).find(
(r) => r.runner == '@nrwl/nx-cloud'
const defaultRunnerIsUsed = Object.values(nxJson.tasksRunnerOptions).find(
(r) => r.runner == '@nrwl/workspace/tasks-runners/default'
);
if (nxCloudRunnerIsUsed) return;
if (!defaultRunnerIsUsed) return;

const res = await askAboutNxCloud();
if (res) {
Expand Down

0 comments on commit f0cf91d

Please sign in to comment.