Skip to content

Commit 94b10f8

Browse files
authored
Merge pull request microsoft#12667 from bb/patch-1
Normalize 'basePath' in 'parseJsonConfigFileContent'
2 parents 7e98fc7 + fee777d commit 94b10f8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/compiler/commandLineParser.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -842,6 +842,7 @@ namespace ts {
842842
*/
843843
export function parseJsonConfigFileContent(json: any, host: ParseConfigHost, basePath: string, existingOptions: CompilerOptions = {}, configFileName?: string, resolutionStack: Path[] = [], extraFileExtensions: FileExtensionInfo[] = []): ParsedCommandLine {
844844
const errors: Diagnostic[] = [];
845+
basePath = normalizeSlashes(basePath);
845846
const getCanonicalFileName = createGetCanonicalFileName(host.useCaseSensitiveFileNames);
846847
const resolvedPath = toPath(configFileName || "", basePath, getCanonicalFileName);
847848
if (resolutionStack.indexOf(resolvedPath) >= 0) {

0 commit comments

Comments
 (0)