monorepo-next 9.4.8 → 9.4.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "monorepo-next",
3
- "version": "9.4.8",
3
+ "version": "9.4.9",
4
4
  "description": "Detach monorepo packages from normal linking",
5
5
  "bin": {
6
6
  "next": "bin/next.js"
@@ -232,9 +232,16 @@ function thirdPass({
232
232
  let currentReleaseType = current.releaseType;
233
233
 
234
234
  if (parent) {
235
- let isDevDep = dag.dependencyType === 'devDependencies';
236
235
  let incomingReleaseType = parent.releaseType;
237
236
 
237
+ if (currentReleaseType === incomingReleaseType) {
238
+ // either already visited at this release type, or already at the lowest
239
+ // either way, no upgrades needed
240
+ return;
241
+ }
242
+
243
+ let isDevDep = dag.dependencyType === 'devDependencies';
244
+
238
245
  if (shouldInheritGreaterReleaseType && !isDevDep && isReleaseTypeLessThan(currentReleaseType, incomingReleaseType)) {
239
246
  current.releaseType = incomingReleaseType;
240
247
  }