Skip to content

Commit 2aed1c8

Browse files
Merge pull request #9799 from RyanCavanaugh/port_fix9785
Port #9798
2 parents 08b3b8b + dec09ec commit 2aed1c8

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)