Skip to content

Commit 69e103d

Browse files
committed
chore(babel-jest): replace chalk with picocolors
1 parent 2f362e5 commit 69e103d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

packages/babel-jest/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424
"@types/babel__core": "^7.1.14",
2525
"babel-plugin-istanbul": "^7.0.0",
2626
"babel-preset-jest": "workspace:*",
27-
"chalk": "^4.0.0",
2827
"graceful-fs": "^4.2.9",
28+
"picocolors": "^1.0.1",
2929
"slash": "^3.0.0"
3030
},
3131
"devDependencies": {

packages/babel-jest/src/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ import {
1313
transformSync as babelTransform,
1414
transformAsync as babelTransformAsync,
1515
} from '@babel/core';
16-
import chalk = require('chalk');
1716
import * as fs from 'graceful-fs';
17+
import picocolors = require('picocolors');
1818
import slash = require('slash');
1919
import type {
2020
TransformOptions as JestTransformOptions,
@@ -38,9 +38,9 @@ function assertLoadedBabelConfig(
3838
): asserts babelConfig {
3939
if (!babelConfig) {
4040
throw new Error(
41-
`babel-jest: Babel ignores ${chalk.bold(
41+
`babel-jest: Babel ignores ${picocolors.bold(
4242
slash(path.relative(cwd, filename)),
43-
)} - make sure to include the file in Jest's ${chalk.bold(
43+
)} - make sure to include the file in Jest's ${picocolors.bold(
4444
'transformIgnorePatterns',
4545
)} as well.`,
4646
);

0 commit comments

Comments
 (0)