Created
September 28, 2020 16:51
-
-
Save isaacs/aca7eaa8378dea9a888f7e97928064d1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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