monorepo-next 9.4.11 → 9.4.12

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.11",
3
+ "version": "9.4.12",
4
4
  "description": "Detach monorepo packages from normal linking",
5
5
  "bin": {
6
6
  "next": "bin/next.js"
@@ -302,9 +302,13 @@ function fourthPass({
302
302
  }
303
303
  }
304
304
 
305
- if (parent && !current[dag.dependencyType][parent.name]) {
305
+ if (parent) {
306
306
  let { name } = parent;
307
307
 
308
+ if (current[dag.dependencyType][name]) {
309
+ return;
310
+ }
311
+
308
312
  let oldRange = dag.dependencyRange;
309
313
  let newRange = oldRange.replace(/ +\|\| +[\d.]*-detached.*/, '');
310
314