monorepo-next 9.4.9 → 9.4.11

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.9",
3
+ "version": "9.4.11",
4
4
  "description": "Detach monorepo packages from normal linking",
5
5
  "bin": {
6
6
  "next": "bin/next.js"
@@ -240,10 +240,20 @@ function thirdPass({
240
240
  return;
241
241
  }
242
242
 
243
+ let isCurrentGreaterThan = !isReleaseTypeLessThan(currentReleaseType, incomingReleaseType);
244
+
245
+ if (isCurrentGreaterThan) {
246
+ // node has changes and hasn't been visited yet
247
+ // it will be processed later when it's its turn
248
+ return;
249
+ }
250
+
243
251
  let isDevDep = dag.dependencyType === 'devDependencies';
244
252
 
245
- if (shouldInheritGreaterReleaseType && !isDevDep && isReleaseTypeLessThan(currentReleaseType, incomingReleaseType)) {
253
+ if (shouldInheritGreaterReleaseType && !isDevDep) {
246
254
  current.releaseType = incomingReleaseType;
255
+ } else {
256
+ return;
247
257
  }
248
258
  } else if (currentReleaseType === defaultReleaseType) {
249
259
  // no upgrades needed