File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3030
3131import { relative , basename , extname , join } from 'path'
3232import { readFileSync , writeFileSync } from 'fs'
33- import { EOL } from 'os'
3433import mkdirp = require( 'mkdirp' )
3534import bufferFrom from 'buffer-from'
3635import stableStringify = require( 'fast-json-stable-stringify' )
@@ -160,7 +159,7 @@ export function createCompiler(configs: ConfigSet): TsCompiler {
160159 readDirectory : wrapWithDebug ( 'readDirectory' , ts . sys . readDirectory ) ,
161160 getDirectories : wrapWithDebug ( 'getDirectories' , ts . sys . getDirectories ) ,
162161 directoryExists : wrapWithDebug ( 'directoryExists' , ts . sys . directoryExists ) ,
163- getNewLine : ( ) => EOL ,
162+ getNewLine : ( ) => '\n' ,
164163 getCurrentDirectory : ( ) => cwd ,
165164 getCompilationSettings : ( ) => compilerOptions ,
166165 getDefaultLibFileName : ( ) => ts . getDefaultLibFilePath ( compilerOptions ) ,
Original file line number Diff line number Diff line change @@ -29,7 +29,6 @@ import {
2929 FormatDiagnosticsHost ,
3030 ParsedCommandLine ,
3131} from 'typescript'
32- import { EOL } from 'os'
3332import { TSError } from './ts-error'
3433import { sha1 } from './sha1'
3534import { stringify } from './json'
@@ -354,7 +353,7 @@ export class ConfigSet {
354353 : this . compilerModule . formatDiagnostics
355354
356355 const diagnosticHost : FormatDiagnosticsHost = {
357- getNewLine : ( ) => EOL ,
356+ getNewLine : ( ) => '\n' ,
358357 getCurrentDirectory : ( ) => this . cwd ,
359358 getCanonicalFileName : path => path ,
360359 }
You can’t perform that action at this time.
0 commit comments