Skip to content

Commit ca15f1b

Browse files
authored
Merge pull request #4540 from iclanton/use-supports-color
[Terminal] Replace 'colors' with 'supports-color'.
2 parents dfea209 + 7aff44d commit ca15f1b

File tree

11 files changed

+568
-523
lines changed

11 files changed

+568
-523
lines changed

build-tests/install-test-workspace/workspace/common/pnpm-lock.yaml

Lines changed: 10 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"changes": [
3+
{
4+
"packageName": "@rushstack/terminal",
5+
"comment": "Replace the `colors` dependency with `supports-color` for detecting if STDOUT and STDERR support color.",
6+
"type": "minor"
7+
}
8+
],
9+
"packageName": "@rushstack/terminal"
10+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"changes": [
3+
{
4+
"packageName": "@rushstack/terminal",
5+
"comment": "Add a `Colorize.rainbow` API.",
6+
"type": "minor"
7+
}
8+
],
9+
"packageName": "@rushstack/terminal"
10+
}

common/config/rush/nonbrowser-approved-packages.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -418,10 +418,6 @@
418418
"name": "cli-table",
419419
"allowedCategories": [ "libraries" ]
420420
},
421-
{
422-
"name": "colors",
423-
"allowedCategories": [ "libraries", "tests" ]
424-
},
425421
{
426422
"name": "compression",
427423
"allowedCategories": [ "libraries" ]
@@ -798,6 +794,10 @@
798794
"name": "sudo",
799795
"allowedCategories": [ "libraries" ]
800796
},
797+
{
798+
"name": "supports-color",
799+
"allowedCategories": [ "libraries" ]
800+
},
801801
{
802802
"name": "tapable",
803803
"allowedCategories": [ "libraries", "tests" ]

0 commit comments

Comments
 (0)