mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Compiler flag to specify line ending #1693 code review adjustments
This commit is contained in:
@@ -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)),
|
||||
|
||||
Reference in New Issue
Block a user