diff options
Diffstat (limited to 'lib/ls.js')
-rw-r--r-- | lib/ls.js | 13 |
1 files changed, 8 insertions, 5 deletions
@@ -115,27 +115,27 @@ const getHumanOutputItem = (node, { args, color, global, long }) => { const missingColor = isOptional(node) ? chalk.yellow.bgBlack : chalk.red.bgBlack - const missingMsg = `UNMET ${isOptional(node) ? 'OPTIONAL ' : ''}DEPENDENCY ` + const missingMsg = `UNMET ${isOptional(node) ? 'OPTIONAL ' : ''}DEPENDENCY` const label = ( node[_missing] - ? (color ? missingColor(missingMsg) : missingMsg) + ? (color ? missingColor(missingMsg) : missingMsg) + ' ' : '' ) + `${highlightDepName ? chalk.yellow.bgBlack(printable) : printable}` + ( node[_dedupe] - ? (color ? chalk.gray(' deduped') : ' deduped') + ? ' ' + (color ? chalk.gray('deduped') : 'deduped') : '' ) + ( node[_invalid] - ? (color ? chalk.red.bgBlack(' invalid') : ' invalid') + ? ' ' + (color ? chalk.red.bgBlack('invalid') : 'invalid') : '' ) + ( isExtraneous(node, { global }) - ? (color ? chalk.green.bgBlack(' extraneous') : ' extraneous') + ? ' ' + (color ? chalk.green.bgBlack('extraneous') : 'extraneous') : '' ) + (isGitNode(node) ? ` (${node.resolved})` : '') + @@ -263,6 +263,9 @@ const augmentNodesWithMetadata = ({ pkgid: node.pkgid, package: node.package, path: node.path, + isLink: node.isLink, + realpath: node.realpath, + [_invalid]: node[_invalid], [_missing]: node[_missing], [_dedupe]: true } |