From 3dfba94c0611c33e2d7f64f6962d10df04631ff4 Mon Sep 17 00:00:00 2001 From: FrozenPandaz Date: Fri, 31 Mar 2023 13:28:14 -0400 Subject: [PATCH] fix(nx-cloud): fix nx-cloud detection --- packages/nx/src/utils/nx-cloud-utils.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/nx/src/utils/nx-cloud-utils.ts b/packages/nx/src/utils/nx-cloud-utils.ts index d73310e215e482..3c4c6d7997348f 100644 --- a/packages/nx/src/utils/nx-cloud-utils.ts +++ b/packages/nx/src/utils/nx-cloud-utils.ts @@ -3,7 +3,8 @@ import { readNxJson } from '../config/configuration'; export function isNxCloudUsed() { const nxJson = readNxJson(); return Object.values(nxJson.tasksRunnerOptions).find( - (r) => r.runner == '@nx/nx-cloud' + // TODO: Remove handling `@nrwl/nx-cloud` in v17 + (r) => ['@nx/nx-cloud', '@nrwl/nx-cloud'].includes(r.runner) ); }