Skip to content

Commit

Permalink
fix(cli): trim trailing newlines from output
Browse files Browse the repository at this point in the history
  • Loading branch information
johnsoncodehk committed Dec 15, 2024
1 parent 00d1db7 commit 0590cdd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/cli/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -430,6 +430,7 @@ class Project {
getCanonicalFileName: ts.sys.useCaseSensitiveFileNames ? x => x : x => x.toLowerCase(),
getNewLine: () => ts.sys.newLine,
});
output = output.trimEnd();
output = output.replace(`TS${diagnostic.code}`, String(diagnostic.code));

if (diagnostic.category === ts.DiagnosticCategory.Error) {
Expand Down

0 comments on commit 0590cdd

Please sign in to comment.