Skip to content

Commit

Permalink
fix(typescriptFormatter): use chalk@2 constructor (#8450)
Browse files Browse the repository at this point in the history
Related #8164
Related #8439
  • Loading branch information
iamandrewluca committed Feb 10, 2020
1 parent d45823c commit 865ea05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react-dev-utils/typescriptFormatter.js
Expand Up @@ -28,7 +28,7 @@ function formatter(message, useColors) {
}
: message;

const colors = new chalk.Instance({ enabled: useColors });
const colors = new chalk.constructor({ enabled: useColors });
const messageColor = message.isWarningSeverity() ? colors.yellow : colors.red;
const fileAndNumberColor = colors.bold.cyan;

Expand Down

0 comments on commit 865ea05

Please sign in to comment.