diff --git a/scripts/checkModuleFormat.mjs b/scripts/checkModuleFormat.mjs index d6ab73eaf624a..d37faf353bfa8 100644 --- a/scripts/checkModuleFormat.mjs +++ b/scripts/checkModuleFormat.mjs @@ -1,3 +1,4 @@ +import chalk from "chalk"; import { createRequire } from "module"; import { __importDefault, @@ -41,7 +42,7 @@ for (const [fn, shouldSucceed] of fns) { console.log(`${fn.toString()} ${status} as expected.`); } else { - console.log(`${fn.toString()} unexpectedly ${status}.`); + console.log(chalk.red(`${fn.toString()} unexpectedly ${status}.`)); process.exitCode = 1; } }