-
Notifications
You must be signed in to change notification settings - Fork 12.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ts.transpile() outputs CRLF as EOL in any OS #2614
Comments
@teppeis would the use of system-dependent line ending be good enough? |
@mhegazy yes, |
FYI: The line endings question has come up in every meta-TypeScript project I've been involved in: TypeStrong/atom-typescript#216 This issue is still open as accepting PR: It's fine to default to the current system's default line ending but to solve this, it really should be overrideable via the tsconfig or a switch. I had intended to take a stab at 1693, but of course this is the sort of thing where the implementation is the easy part and naming the switch is the hard part. :-) |
@nycdotnet i agree. i was initially going to do fix it by adding the flag. if you intend to send a PR for #1693 soon, then i would wait for it. |
I'll give it a shot and let you know either way in the next two weeks. Based on the ~80% 1.5 issues treadmill, I'm hopeful this should be in plenty of time. |
@mhegazy thanks! |
Having looked at @nycdotnet 's list I am now inclined to say "os.eol" or death in the next meta ts project :) |
CRLF is hardcoded:
https://github.com/Microsoft/TypeScript/blob/5e7343f573c3e987caaa3f2326386b8c796e6fa3/src/services/services.ts#L1683
The text was updated successfully, but these errors were encountered: