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:
authorRuy Adorno <ruyadorno@hotmail.com>2020-07-23 17:41:30 +0300
committerRuy Adorno <ruyadorno@hotmail.com>2020-07-23 17:41:30 +0300
commit58772965200d1dbaefe4f3211a6d3e8ff5ef8de9 (patch)
tree92401c157e6b9891d48c4445f4dea11a3a17e628 /lib/ls.js
parentc891dff3231a06c3fb1d521160e6d700349a584c (diff)
fix: archy output dedupe label color
Diffstat (limited to 'lib/ls.js')
-rw-r--r--lib/ls.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/ls.js b/lib/ls.js
index 939bdd132..56bb4faec 100644
--- a/lib/ls.js
+++ b/lib/ls.js
@@ -123,7 +123,11 @@ const getHumanOutputItem = (node, { args, color, global, long }) => {
: ''
) +
`${highlightDepName ? chalk.yellow.bgBlack(printable) : printable}` +
- (node[_dedupe] ? ' deduped' : '') +
+ (
+ node[_dedupe]
+ ? (color ? chalk.gray(' deduped') : ' deduped')
+ : ''
+ ) +
(
node[_invalid]
? (color ? chalk.red.bgBlack(' invalid') : ' invalid')