fix(misc): only prompt for nx-cloud when using the default runner
Closes #4295
This commit is contained in:
parent
86b5c5c518
commit
f0cf91d0b6
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user