JS: Do not view packages as nested in a private package

This commit is contained in:
Asger F
2024-01-16 12:13:14 +01:00
parent 2d8d11fa78
commit 8930ce74af

View File

@@ -29,7 +29,8 @@ class PackageJson extends JsonObject {
parentDir.getAChildContainer+() = currentDir and
pkgNameDiff = currentDir.getAbsolutePath().suffix(parentDir.getAbsolutePath().length()) and
not exists(pkgNameDiff.indexOf("/node_modules/")) and
result = parentPkgName + pkgNameDiff
result = parentPkgName + pkgNameDiff and
not parentPkg.isPrivate()
)
}