From 4e39d0f17a8fc64a0d549aa125e6155cbefc9e59 Mon Sep 17 00:00:00 2001
From: JamesHenry <james@henry.sc>
Date: Tue, 10 Sep 2024 15:59:58 +0400
Subject: [PATCH] fix(release): respect updateDependents being explicitly
 disabled in conventional commits

---
 .../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(