-
Notifications
You must be signed in to change notification settings - Fork 12.8k
[email protected] doesn't have newLine compiler option #5968
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
Comments
Ok, it was a version issue :) I got confused between typescript and tsc. And I had different versions of tsc installed (locally and globally): I did |
@yoav-zibin |
Thanks! Now I finally have the correct version: It's interesting the other project (tsc) got formed in order to give stable APIs. |
The newLine option is documented here:
https://github.com/Microsoft/TypeScript/wiki/Compiler-Options
--newLine Use the specified end of line sequence to be used when emitting files: 'CRLF' (dos) or 'LF' (unix)."
I have this line in my tsconfig.json:
{
"compilerOptions": {
"target": "es5",
"module": "commonjs",
"declaration": false,
"noImplicitAny": true,
"suppressImplicitAnyIndexErrors": false,
"removeComments": false,
"rootDir": ".",
"outDir": "ts_output_readonly_do_NOT_change_manually/",
"sourceMap": false,
"noLib": false,
"newLine": "CRLF"
},
But when I run tsc it complains about Unknown compiler option 'newLine'
yzibin-macbookpro2:multiplayer-games-web yzibin$ npm install typescript --save-dev
[email protected] node_modules/typescript
yzibin-macbookpro2:multiplayer-games-web yzibin$ tsc
error TS5023: Unknown compiler option 'newLine'.
yzibin-macbookpro2:multiplayer-games-web yzibin$ tsc --newLine CRLF
error TS5023: Unknown compiler option 'newline'.
yzibin-macbookpro2:multiplayer-games-web yzibin$ tsc --version
message TS6029: Version 1.5.0-beta
The text was updated successfully, but these errors were encountered: