diff options
author | Rebecca Turner <me@re-becca.org> | 2015-06-24 12:40:40 +0300 |
---|---|---|
committer | Rebecca Turner <me@re-becca.org> | 2015-06-26 03:27:33 +0300 |
commit | 7c5ebe0552b7b5d0cdca34d28c4f16fe794ff2ff (patch) | |
tree | 6c68173e9f074c0bb1d79d5c74f63da03437f83a /lib/install/logical-tree.js | |
parent | ae1f2027d1d0d81f5fe5cc5c5321c3d95d90a8d6 (diff) |
ls: Don't error on missing optional deps
This does mark them as missing in the main output (in yellow) but
does not include them in the error list nor does it result in an
error code.
Diffstat (limited to 'lib/install/logical-tree.js')
-rw-r--r-- | lib/install/logical-tree.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/install/logical-tree.js b/lib/install/logical-tree.js index 8a3da74df..f0faf6e78 100644 --- a/lib/install/logical-tree.js +++ b/lib/install/logical-tree.js @@ -68,7 +68,11 @@ function translateTree (tree) { pkg.dependencies[name].realName = name pkg.dependencies[name].extraneous = false } else { - pkg.dependencies[name] = tree.missingDeps[name] + pkg.dependencies[name] = { + requiredBy: tree.missingDeps[name], + missing: true, + optional: !!pkg.optionalDependencies[name] + } } }) if (tree.missingPeers) { |