Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@isaacs
Created September 28, 2020 16:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save isaacs/aca7eaa8378dea9a888f7e97928064d1 to your computer and use it in GitHub Desktop.
Save isaacs/aca7eaa8378dea9a888f7e97928064d1 to your computer and use it in GitHub Desktop.
diff --git a/lib/ls.js b/lib/ls.js
index 09e70c9be..7d9be02fb 100644
--- a/lib/ls.js
+++ b/lib/ls.js
@@ -423,7 +423,7 @@ const ls = async (args) => {
!(node instanceof Arborist.Node) || (node[_depth] > depthToPrint)
return (shouldSkipChildren)
? []
- : [...node.edgesOut.values()]
+ : [...(node.target || node).edgesOut.values()]
.filter(filterByEdgesTypes({
dev,
development,
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment