Skip to content

Commit dec09ec

Browse files
committed
Port #9798
1 parent 9886f88 commit dec09ec

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/compiler/tsc.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,8 @@ namespace ts {
380380
sys.exit(ExitStatus.DiagnosticsPresent_OutputsSkipped);
381381
return;
382382
}
383-
const configParseResult = parseJsonConfigFileContent(configObject, sys, getNormalizedAbsolutePath(getDirectoryPath(configFileName), sys.getCurrentDirectory()), commandLine.options, configFileName);
383+
const cwd = sys.getCurrentDirectory();
384+
const configParseResult = parseJsonConfigFileContent(configObject, sys, getNormalizedAbsolutePath(getDirectoryPath(configFileName), cwd), commandLine.options, getNormalizedAbsolutePath(configFileName, cwd));
384385
if (configParseResult.errors.length > 0) {
385386
reportDiagnostics(configParseResult.errors, /* compilerHost */ undefined);
386387
sys.exit(ExitStatus.DiagnosticsPresent_OutputsSkipped);

0 commit comments

Comments
 (0)