Skip to content

Commit

Permalink
fix(release): ensure plan subcommand works with object config (#28460)
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesHenry authored Oct 15, 2024
1 parent 72292c7 commit 3634781
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/nx/src/command-line/release/plan.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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`,
Expand Down

0 comments on commit 3634781

Please sign in to comment.