From f3cb303c2468e5ec88705983d74bded21858adb5 Mon Sep 17 00:00:00 2001 From: Jake Bailey <5341706+jakebailey@users.noreply.github.com> Date: Thu, 11 Jul 2024 09:09:15 -0700 Subject: [PATCH] Make module format errors red --- scripts/checkModuleFormat.mjs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } }