Compiler flag to specify line ending #1693 code review adjustments

This commit is contained in:
kmashint
2015-05-03 02:07:18 -04:00
parent 16d7e5cad7
commit c1d2aeab84
4 changed files with 9 additions and 7 deletions
+5 -2
View File
@@ -91,8 +91,11 @@ module ts {
}
}
let newLine = [sys.newLine, "\r\n", "\n"][options.newLine ? Number(options.newLine) : 0];
let newLine =
options.newLine === NewLineKind.CarriageReturnLineFeed ? "\r\n" :
options.newLine === NewLineKind.LineFeed ? "\n" :
sys.newLine;
return {
getSourceFile,
getDefaultLibFileName: options => combinePaths(getDirectoryPath(normalizePath(sys.getExecutingFilePath())), getDefaultLibFileName(options)),