@yarnpkg/nm
Advanced tools
Comparing version 4.0.0 to 4.0.1
@@ -408,3 +408,3 @@ "use strict"; | ||
// We do not want self-references in node_modules, since they confuse existing tools | ||
if (dep.identName === pkg.identName && depReferences === pkgReferences) | ||
if (dep.identName === pkg.identName.replace(WORKSPACE_NAME_SUFFIX, ``) && depReferences === pkgReferences) | ||
continue; | ||
@@ -427,4 +427,3 @@ const references = Array.from(dep.references).sort(); | ||
} | ||
const isCircularSymlink = leafNode.linkType === LinkType.SOFT && nodeModulesLocation.startsWith(leafNode.target); | ||
if (!dep.name.endsWith(WORKSPACE_NAME_SUFFIX) && !isAnonymousWorkspace && !isCircularSymlink) { | ||
if (!dep.name.endsWith(WORKSPACE_NAME_SUFFIX) && !isAnonymousWorkspace) { | ||
const prevNode = tree.get(nodeModulesLocation); | ||
@@ -431,0 +430,0 @@ if (prevNode) { |
{ | ||
"name": "@yarnpkg/nm", | ||
"version": "4.0.0", | ||
"version": "4.0.1", | ||
"license": "BSD-2-Clause", | ||
@@ -12,5 +12,5 @@ "main": "./lib/index.js", | ||
"dependencies": { | ||
"@yarnpkg/core": "^4.0.0", | ||
"@yarnpkg/fslib": "^3.0.0", | ||
"@yarnpkg/pnp": "^4.0.0" | ||
"@yarnpkg/core": "^4.0.2", | ||
"@yarnpkg/fslib": "^3.0.1", | ||
"@yarnpkg/pnp": "^4.0.1" | ||
}, | ||
@@ -17,0 +17,0 @@ "scripts": { |
80378
1652
Updated@yarnpkg/core@^4.0.2
Updated@yarnpkg/fslib@^3.0.1
Updated@yarnpkg/pnp@^4.0.1