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
This seems like a docs/education issue. .dev does not mean "In the devDependencies of something in the current set" it means "It is in the tree because of something in the root's devDependencies"
It seems what you are trying to query is all of the entries in devDependencies?
there's some improvement to be made for the .dev selector in general i think. we don't have a way to get only direct devDependencies and we also don't have a way to get every node that exists exclusively as a devdep
What we really need is a descendant operator to allow us to specify the edges out types. root > :dep(dev) would be everything in the root package's devDependencies for example
wraithgar
changed the title
[query] direct descendant > selector as logical AND operator
[query] need a descendant operator that can specify type
Jan 9, 2023
Problem Statement
In the
npm/cli
repo the following query should return an empty set since none of the direct dependents are.dev
deps:Current Behavior
In the current implementation both
:root
and.dev
are collected separately so it returns:Expected Behavior
It should return
[]
sincenpm-package-arg
is only a direct.prod
dependencyThe text was updated successfully, but these errors were encountered: