(configFile: string)
| 101 | } |
| 102 | |
| 103 | export function readConfig(configFile: string): any { |
| 104 | let result = ts.readConfigFile(configFile, ts.sys.readFile); |
| 105 | if (result.error) { |
| 106 | let message = ts.formatDiagnostics([result.error], formatDiagnosticsHost); |
| 107 | throw new Error(message); |
| 108 | } |
| 109 | return result.config; |
| 110 | } |
| 111 | |
| 112 | export function stripBom(source: string): string { |
| 113 | if (source.charCodeAt(0) === 0xfeff) { |
no outgoing calls
no test coverage detected
searching dependent graphs…