mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-17 11:24:29 -05:00
Toss the option out the window
This commit is contained in:
@@ -374,7 +374,7 @@ namespace ts {
|
||||
* Read tsconfig.json file
|
||||
* @param fileName The path to the config file
|
||||
*/
|
||||
export function readConfigFile(fileName: string, system: System = sys): { config?: any; error?: Diagnostic } {
|
||||
export function readConfigFile(fileName: string, system: System): { config?: any; error?: Diagnostic } {
|
||||
let text = "";
|
||||
try {
|
||||
text = system.readFile(fileName);
|
||||
|
||||
@@ -216,7 +216,7 @@ namespace ts {
|
||||
if (!cachedProgram) {
|
||||
if (configFileName) {
|
||||
|
||||
let result = readConfigFile(configFileName);
|
||||
let result = readConfigFile(configFileName, sys);
|
||||
if (result.error) {
|
||||
reportDiagnostic(result.error);
|
||||
return sys.exit(ExitStatus.DiagnosticsPresent_OutputsSkipped);
|
||||
|
||||
Reference in New Issue
Block a user