You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using tsc, every file output does not have a newline at the end of the file. Is this intended? If so, it would be nice to have a flag to change this behavior.
The text was updated successfully, but these errors were encountered:
To what end? Can you not put newlines at the end of your source files if there's some need for this in your toolchain? Or are you saying your EOF newlines are getting removed?
The original typescript files are formatted with newlines before EOF, and the output es5 files are not.
danquirk
changed the title
Typescript compiler does not add a newline at the end out output files
Do not strip end of file newlines in emit
May 27, 2015
Just looking at old issues; I tested the emitter on inputs without a trailing newline all the way back to 0.8 and every version has added a trailing newline, so I'm pretty sure this is not a problem (and maybe never was). But if this really is still happening, happy to reopen.
When using
tsc
, every file output does not have a newline at the end of the file. Is this intended? If so, it would be nice to have a flag to change this behavior.The text was updated successfully, but these errors were encountered: