Skip to content

Commit

Permalink
! r move chalk ot ansi-colors
Browse files Browse the repository at this point in the history
Co-Authored-By: Matt Hughes <221921+mch@users.noreply.github.com>
  • Loading branch information
isidore and mch committed Aug 9, 2024
1 parent 1c7a4c5 commit 8e4c128
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 24 deletions.
10 changes: 5 additions & 5 deletions lib/Utilities/ConsoleUtils.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import chalk from "chalk";
import { gray, green, red, yellow } from "ansi-colors";

export function yellowText(text: string): string {
return chalk.yellow(text);
return yellow(text);
}

export function redText(text: string): string {
return chalk.red(text);
return red(text);
}
export function greenText(text: string): string {
return chalk.green(text);
return green(text);
}
export function grayText(text: string): string {
return chalk.gray(text);
return gray(text);
}
47 changes: 29 additions & 18 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@
"dependencies": {
"@typescript-eslint/eslint-plugin": "^7.7.0",
"@typescript-eslint/parser": "^7.7.0",
"ansi-colors": "^4.1.3",
"callsite": "^1.0.0",
"chalk": "^4.1.0",
"diff": "^5.2.0",
"event-stream": "^4.0.1",
"file-type": "^12.4.2",
Expand Down

0 comments on commit 8e4c128

Please sign in to comment.