Skip to content

Commit

Permalink
fix: avoid truncated output on macOS (#503)
Browse files Browse the repository at this point in the history
Use console.log() instead of process.stdout.write() will avoid potential output truncation on macOS.
  • Loading branch information
boneskull authored and marionebl committed Nov 30, 2018
1 parent 5a34b8c commit 3192368
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion @commitlint/cli/src/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ async function main(options) {
const output = format(report, {color: flags.color});

if (!flags.quiet) {
process.stdout.write(output);
console.log(output);
}

if (!report.valid) {
Expand Down

0 comments on commit 3192368

Please sign in to comment.