fix: make prettyPrint always add a newline

This commit is contained in:
Alex Mikhalev 2018-09-02 22:26:57 -06:00
parent 2503756c60
commit f013c5b111

View File

@ -62,7 +62,6 @@ function formatter(value: any) {
} else {
line += filter(value);
}
line += "\n";
return line;
}
@ -146,7 +145,7 @@ class PrettyPrintTranform extends Transform {
if (!line) {
return cb();
}
process.stdout.write(line);
process.stdout.write(line + "\n");
cb();
}
}