gulp-typescript icon indicating copy to clipboard operation
gulp-typescript copied to clipboard

Support newLine option

Open lf- opened this issue 8 years ago • 0 comments

Expected behavior: Specifying "newLine": "LF" in tsconfig.json will cause the compiler to emit the correct newlines

Actual behavior: The compiler emits the native (CRLF) newlines

Your gulpfile:

https://github.com/screepers/screeps-typescript-starter/blob/master/gulpfile.js

tsconfig.json

Include your tsconfig, if related to this issue.

{
  "compilerOptions": {
    "module": "commonjs",
    "target": "es6",
    "removeComments": true,
    "noResolve": false,
    "noImplicitAny": true,
    "experimentalDecorators": true,
    "strictNullChecks": true,
    "noUnusedParameters": true,
    "noUnusedLocals": true,
    "sourceMap": true,
    "newLine": "LF",
    "lib": [
      "es2016"
    ]
  },
  "compileOnSave": false,
  "include": [
    "typings/**/*.d.ts",
    "src/**/*.ts",
    "src/index.d.ts"
  ],
  "exclude": [
    "dist",
    "node_modules",
    "libs"
  ]
}

lf- avatar Mar 02 '17 05:03 lf-