Skip to content

Commit aeda546

Browse files
committed
refactor: replace colorette with picocolors
1 parent 0303783 commit aeda546

File tree

5 files changed

+7
-12
lines changed

5 files changed

+7
-12
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959
"execa": "^5.1.1",
6060
"globby": "^11.1.0",
6161
"joycon": "^3.1.1",
62+
"picocolors": "^1.0.1",
6263
"postcss-load-config": "^6.0.1",
6364
"resolve-from": "^5.0.0",
6465
"rollup": "^4.18.1",
@@ -74,7 +75,6 @@
7475
"@types/fs-extra": "11.0.4",
7576
"@types/node": "20.14.11",
7677
"@types/resolve": "1.20.6",
77-
"colorette": "2.0.20",
7878
"flat": "6.0.1",
7979
"fs-extra": "11.2.0",
8080
"postcss": "8.4.39",

pnpm-lock.yaml

Lines changed: 3 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/errors.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { isMainThread, parentPort } from 'node:worker_threads'
2-
import * as colors from 'colorette'
2+
import * as colors from 'picocolors'
33

44
export class PrettyError extends Error {
55
constructor(message: string) {

src/lib/report-size.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as colors from 'colorette'
1+
import * as colors from 'picocolors'
22
import type { Logger } from '../log'
33

44
const prettyBytes = (bytes: number) => {

src/log.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import util from 'node:util'
22
import { isMainThread, parentPort } from 'node:worker_threads'
3-
import * as colors from 'colorette'
3+
import * as colors from 'picocolors'
44

55
type LOG_TYPE = 'info' | 'success' | 'error' | 'warn'
66

0 commit comments

Comments
 (0)