-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] npm ls doesn't support depth #1861
Labels
Milestone
Comments
ruyadorno
added a commit
to ruyadorno/cli
that referenced
this issue
Sep 25, 2020
Using the cli option --depth is currently not resulting in the expected behavior of filtering depth level when running npm ls <pkg> - that's due the special behavior of printing all results when using a filter arg. This commit fixes it by adding support to limiting depth if a config value is set by the user. Fixes npm#1861
ruyadorno
added a commit
to ruyadorno/cli
that referenced
this issue
Sep 25, 2020
Using the cli option --depth is currently not resulting in the expected behavior of filtering depth level when running npm ls <pkg> - that's due the special behavior of printing all results when using a filter arg. This commit fixes it by adding support to limiting depth if a config value is set by the user. Fixes npm#1861
ruyadorno
added a commit
to ruyadorno/cli
that referenced
this issue
Sep 25, 2020
Using the cli option --depth is currently not resulting in the expected behavior of filtering depth level when running npm ls <pkg> - that's due the special behavior of printing all results when using a filter arg. This commit fixes it by adding support to limiting depth if a config value is set by the user. Fixes npm#1861
nlf
pushed a commit
that referenced
this issue
Sep 29, 2020
Using the cli option --depth is currently not resulting in the expected behavior of filtering depth level when running npm ls <pkg> - that's due the special behavior of printing all results when using a filter arg. This commit fixes it by adding support to limiting depth if a config value is set by the user. Fixes #1861 PR-URL: #1862 Credit: @ruyadorno Close: #1862 Reviewed-by: @nlf
nlf
pushed a commit
that referenced
this issue
Sep 29, 2020
Using the cli option --depth is currently not resulting in the expected behavior of filtering depth level when running npm ls <pkg> - that's due the special behavior of printing all results when using a filter arg. This commit fixes it by adding support to limiting depth if a config value is set by the user. Fixes #1861 PR-URL: #1862 Credit: @ruyadorno Close: #1862 Reviewed-by: @nlf
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Current Behavior:
Running
npm ls <pkg> --depth=0
doesn't produce a filtered result of deps installed on diskExpected Behavior:
Running
npm ls <pkg> --depth=0
will show me just the top-level deps installed on disk (seenpm@6.x
)Steps To Reproduce:
npm@<=7.0.0-beta.12
...npm ls <pkg> --depth=0
...npm ls
or evennpm ls --all
(there is no difference)Environment:
The text was updated successfully, but these errors were encountered: