(diagnostics)
| 28 | }; |
| 29 | |
| 30 | function fail(diagnostics) { |
| 31 | process.stderr.write(ts.formatDiagnosticsWithColorAndContext(diagnostics, host)); |
| 32 | process.exitCode = 1; |
| 33 | } |
| 34 | |
| 35 | const configPath = path.join(root, 'tsconfig.json'); |
| 36 | const {config, error} = ts.readConfigFile(configPath, ts.sys.readFile); |