Skip to content

Commit 212ec1a

Browse files
committed
Make module format errors red
1 parent 208e064 commit 212ec1a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/checkModuleFormat.mjs

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import chalk from "chalk";
12
import { createRequire } from "module";
23
import {
34
__importDefault,
@@ -41,7 +42,7 @@ for (const [fn, shouldSucceed] of fns) {
4142
console.log(`${fn.toString()} ${status} as expected.`);
4243
}
4344
else {
44-
console.log(`${fn.toString()} unexpectedly ${status}.`);
45+
console.log(chalk.red(`${fn.toString()} unexpectedly ${status}.`));
4546
process.exitCode = 1;
4647
}
4748
}

0 commit comments

Comments
 (0)