Skip to content

Commit

Permalink
Make module format errors red
Browse files Browse the repository at this point in the history
  • Loading branch information
jakebailey committed Jul 11, 2024
1 parent 208e064 commit 212ec1a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/checkModuleFormat.mjs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import chalk from "chalk";
import { createRequire } from "module";
import {
__importDefault,
Expand Down Expand Up @@ -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;
}
}
Expand Down

0 comments on commit 212ec1a

Please sign in to comment.