mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-06 20:14:01 -06:00
Toss the option out the window
This commit is contained in:
parent
3598b906e3
commit
e4af02bb8b
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user