mirror of
https://github.com/pnpm/pnpm.git
synced 2026-05-12 18:49:41 -04:00
fix(why): do not incorrectly include linked deps in search results (#3428)
This commit is contained in:
5
.changeset/clean-pans-know.md
Normal file
5
.changeset/clean-pans-know.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"dependencies-hierarchy": patch
|
||||
---
|
||||
|
||||
Do not include linked dependencies in search results if they do not match.
|
||||
@@ -290,7 +290,9 @@ function getTreeHelper (
|
||||
let newEntry: PackageNode | null = null
|
||||
if (packageAbsolutePath === null) {
|
||||
circular = false
|
||||
newEntry = packageInfo
|
||||
if (opts.search == null || matchedSearched) {
|
||||
newEntry = packageInfo
|
||||
}
|
||||
} else {
|
||||
let dependencies: PackageNode[] | undefined
|
||||
|
||||
|
||||
Reference in New Issue
Block a user