From f3d64b0ffc02c107040595234fe229b4a30baab3 Mon Sep 17 00:00:00 2001 From: Christopher Chedeau Date: Mon, 13 Feb 2017 19:25:28 -0800 Subject: [PATCH] fix --debug-check --- bin/prettier.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bin/prettier.js b/bin/prettier.js index 66c516b8..e108e294 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);