From 3634781d660fab59a26009c089fe4a03b391bcaf Mon Sep 17 00:00:00 2001 From: James Henry Date: Wed, 16 Oct 2024 01:11:43 +0400 Subject: [PATCH] fix(release): ensure plan subcommand works with object config (#28460) --- packages/nx/src/command-line/release/plan.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/nx/src/command-line/release/plan.ts b/packages/nx/src/command-line/release/plan.ts index 6ce9569811097..4c10b2cc7dc50 100644 --- a/packages/nx/src/command-line/release/plan.ts +++ b/packages/nx/src/command-line/release/plan.ts @@ -77,7 +77,7 @@ export function createAPI(overrideReleaseConfig: NxReleaseConfiguration) { } // If no release groups have version plans enabled, it doesn't make sense to use the plan command only to set yourself up for an error at release time - if (!releaseGroups.some((group) => group.versionPlans === true)) { + if (!releaseGroups.some((group) => !!group.versionPlans)) { if (releaseGroups.length === 1) { output.warn({ title: `Version plans are not enabled in your release configuration`,