Skip to content

Commit d8a97fa

Browse files
committed
Make module format errors red
1 parent 576b79e commit d8a97fa

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/checkModuleFormat.mjs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { createRequire } from "module";
2+
import pc from "picocolors";
23
import {
34
__importDefault,
45
__importStar,
@@ -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(pc.red(`${fn.toString()} unexpectedly ${status}.`));
4546
process.exitCode = 1;
4647
}
4748
}

0 commit comments

Comments
 (0)