From f0cf91d0b63bbd139edba7406e97a669a3ae3fdf Mon Sep 17 00:00:00 2001 From: Victor Savkin Date: Thu, 17 Dec 2020 13:16:19 -0500 Subject: [PATCH] fix(misc): only prompt for nx-cloud when using the default runner Closes #4295 --- packages/workspace/src/command-line/prompt-for-nx-cloud.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/workspace/src/command-line/prompt-for-nx-cloud.ts b/packages/workspace/src/command-line/prompt-for-nx-cloud.ts index dc23fed3e37a9..c045718293534 100644 --- a/packages/workspace/src/command-line/prompt-for-nx-cloud.ts +++ b/packages/workspace/src/command-line/prompt-for-nx-cloud.ts @@ -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) {