From 0c449b449b5a5ac6f637cc8982582d96c0865eef Mon Sep 17 00:00:00 2001 From: James Henry Date: Tue, 10 Sep 2024 16:42:43 +0400 Subject: [PATCH] fix(release): respect updateDependents being explicitly disabled in conventional commits (#27851) --- .../js/src/generators/release-version/release-version.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/js/src/generators/release-version/release-version.ts b/packages/js/src/generators/release-version/release-version.ts index 072369adc8ed4..ff3c41b568711 100644 --- a/packages/js/src/generators/release-version/release-version.ts +++ b/packages/js/src/generators/release-version/release-version.ts @@ -383,7 +383,10 @@ To fix this you will either need to add a package.json file at that location, or ); if (!specifier) { - if (projectToDependencyBumps.has(projectName)) { + if ( + updateDependents !== 'never' && + projectToDependencyBumps.has(projectName) + ) { // No applicable changes to the project directly by the user, but one or more dependencies have been bumped and updateDependents is enabled specifier = updateDependentsBump; logger.buffer(