diff --git a/bin/prettier.js b/bin/prettier.js index 66c516b8d..e108e2942 100755 --- a/bin/prettier.js +++ b/bin/prettier.js @@ -236,6 +236,11 @@ if (stdin) { } }); } + } else if (argv["debug-check"]) { + process.stdout.write("\n"); + if (output) { + console.log(output); + } } else { // Don't use `console.log` here since it adds an extra newline at the end. process.stdout.write(output);