You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Transitive dependencies appear as direct children of root (e.g. abbrev which is only a dependency of nopt, not a root dependency).
Bare store directory nodes without a name appear in results (e.g. node_modules/.store/nopt@7.2.1-... with no name field).
The total number of results is higher than the actual number of direct dependencies.
This affects both workspace and non-workspace projects. With the hoisted strategy, :root > * correctly returns only direct dependencies.
Expected Behavior
npm query ':root > *' should return only the direct dependencies declared in package.json. For the example below with nopt, ini, and semver as direct deps, it should return exactly 3 entries.
Activity