Skip to content

Commit 1e7f0e8

Browse files
committed
chore(jest-repl): replace chalk with picocolors
1 parent e204454 commit 1e7f0e8

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

packages/jest-repl/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@
2525
"@jest/environment": "workspace:*",
2626
"@jest/transform": "workspace:*",
2727
"@jest/types": "workspace:*",
28-
"chalk": "^4.0.0",
2928
"jest-config": "workspace:*",
3029
"jest-runtime": "workspace:*",
3130
"jest-util": "workspace:*",
3231
"jest-validate": "workspace:*",
32+
"picocolors": "^1.0.1",
3333
"repl": "^0.1.3",
3434
"yargs": "^17.3.1"
3535
},

packages/jest-repl/src/cli/runtime-cli.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import {
1212
} from 'os';
1313
import * as path from 'path';
1414
import * as util from 'util';
15-
import chalk = require('chalk');
15+
import * as pico from 'picocolors';
1616
import yargs = require('yargs');
1717
import {CustomConsole} from '@jest/console';
1818
import type {JestEnvironment} from '@jest/environment';
@@ -142,7 +142,7 @@ export async function run(
142142
}
143143
} catch (error: any) {
144144
console.error(
145-
chalk.red(util.types.isNativeError(error) ? error.stack : error),
145+
pico.red(util.types.isNativeError(error) ? error.stack : error),
146146
);
147147
process.on('exit', () => {
148148
process.exitCode = 1;

yarn.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13363,12 +13363,12 @@ __metadata:
1336313363
"@jest/transform": "workspace:*"
1336413364
"@jest/types": "workspace:*"
1336513365
"@types/yargs": ^17.0.8
13366-
chalk: ^4.0.0
1336713366
execa: ^5.0.0
1336813367
jest-config: "workspace:*"
1336913368
jest-runtime: "workspace:*"
1337013369
jest-util: "workspace:*"
1337113370
jest-validate: "workspace:*"
13371+
picocolors: ^1.0.1
1337213372
repl: ^0.1.3
1337313373
yargs: ^17.3.1
1337413374
bin:

0 commit comments

Comments
 (0)