Skip to content

Commit 3192368

Browse files
boneskullmarionebl
authored andcommitted
fix: avoid truncated output on macOS (#503)
Use console.log() instead of process.stdout.write() will avoid potential output truncation on macOS.
1 parent 5a34b8c commit 3192368

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

@commitlint/cli/src/cli.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ async function main(options) {
171171
const output = format(report, {color: flags.color});
172172

173173
if (!flags.quiet) {
174-
process.stdout.write(output);
174+
console.log(output);
175175
}
176176

177177
if (!report.valid) {

0 commit comments

Comments
 (0)