Skip to content

Commit

Permalink
Replace chalk by picocolors
Browse files Browse the repository at this point in the history
  • Loading branch information
marcbouchenoire committed Nov 29, 2021
1 parent 99e5626 commit 5a58f7a
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion packages/symbolist/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,12 @@
"@types/prettier": "^2.4.2",
"@types/write-file-atomic": "^3.0.2",
"app-exists": "^2.1.1",
"chalk": "^4.1.2",
"clipboardy": "^3.0.0",
"listr": "^0.14.3",
"listr-input": "^0.2.1",
"microbundle": "^0.14.2",
"nyc": "^15.1.0",
"picocolors": "^1.0.0",
"uvu": "^0.5.2",
"write-file-atomic": "^3.0.3",
"write-json-file": "^5.0.0"
Expand Down
6 changes: 3 additions & 3 deletions packages/symbolist/scripts/utils/listr-input.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import chalk from "chalk"
import { ListrTask } from "listr"
import ListrDefaultInput from "listr-input"
import pc from "picocolors"
import { join } from "./join"

export function ListrInput<C>(
Expand All @@ -22,8 +22,8 @@ export function ListrInput<C>(
},
title: join(
title,
message ? chalk.dim(`(${message})`) : null,
warning ? chalk.yellow(`(${warning})`) : null
message ? pc.dim(`(${message})`) : null,
warning ? pc.yellow(`(${warning})`) : null
)
}
}
4 changes: 2 additions & 2 deletions packages/symbolist/scripts/utils/listr-message.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import chalk from "chalk"
import { ListrTask } from "listr"
import pc from "picocolors"
import { join } from "./join"

export function ListrMessage(title: string, detail?: string): ListrTask {
return {
task: () => {},
title: join(title, detail ? chalk.dim(`(${detail})`) : null)
title: join(title, detail ? pc.dim(`(${detail})`) : null)
}
}
2 changes: 1 addition & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3534,7 +3534,7 @@ chalk@^1.0.0, chalk@^1.1.3:
strip-ansi "^3.0.0"
supports-color "^2.0.0"

chalk@^4.0.0, chalk@^4.1.0, chalk@^4.1.2:
chalk@^4.0.0, chalk@^4.1.0:
version "4.1.2"
resolved "https://registry.yarnpkg.com/chalk/-/chalk-4.1.2.tgz#aac4e2b7734a740867aeb16bf02aad556a1e7a01"
integrity sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==
Expand Down

0 comments on commit 5a58f7a

Please sign in to comment.