Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib/ls.js
diff options
context:
space:
mode:
authorLars Willighagen <lars.willighagen@gmail.com>2019-01-30 02:48:58 +0300
committerAudrey Eschright <audrey@lifeofaudrey.com>2019-02-14 22:19:49 +0300
commite37c0cd071b0ce78c3712907c78c2fc1981bed8a (patch)
treeacd1532f53048f755a6eb6577adac7eeaf3818ff /lib/ls.js
parent88cc4fc97f50afd60249516e1c3a1ef32ae48a9a (diff)
ls: show installed but unmet peer deps (#145)
PR-URL: https://github.com/npm/cli/pull/145 Fixes: https://npm.community/t/4770 Credit: @larsgw Reviewed-By: @aeschright
Diffstat (limited to 'lib/ls.js')
-rw-r--r--lib/ls.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ls.js b/lib/ls.js
index bb5e433f7..8653fc718 100644
--- a/lib/ls.js
+++ b/lib/ls.js
@@ -305,7 +305,7 @@ function filterFound (root, args) {
if (!markDeps) continue
Object.keys(markDeps).forEach(function (depName) {
var dep = markDeps[depName]
- if (dep.peerMissing) return
+ if (dep.peerMissing && !dep._from) return
dep._parent = markPkg
for (var ii = 0; ii < args.length; ii++) {
var argName = args[ii][0]