We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ebfed90 commit 7997e6bCopy full SHA for 7997e6b
typescript/verify.js
@@ -48,10 +48,13 @@ async function verify(name, directory) {
48
49
let diagnostics = await compile(path.join(directory, 'tsconfig.json'));
50
let success = diagnostics.length === 0;
51
+ let report = `\x1b${success ? '[32m✔' : '[31mX'}\x1b[0m`;
52
- process.stdout.write(
53
- `\x1b[${line.length}D\x1b${success ? '[32m✔' : '[31mX'}\x1b[0m ${name} \n`
54
- );
+ if (process.stdout.isTTY) {
+ process.stdout.write(`\x1b[${line.length}D${report} ${name} \n`);
55
+ } else {
56
+ process.stdout.write(` ${report}\n`);
57
+ }
58
59
if (!success) {
60
printDiagnostics(diagnostics);
0 commit comments