-
Notifications
You must be signed in to change notification settings - Fork 3.4k
[BUG] npm ls doesn't support depth #1861
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
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
# for free
to join this conversation on GitHub.
Already have an account?
# 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: