Skip to content

Commit 7ed6c7a

Browse files
Merge pull request #5373 from brettm523/5298-normalize-err-msg-path
add normalizePath to to fix slashes
2 parents bede6ed + 7c251bc commit 7ed6c7a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compiler/tsc.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -567,7 +567,7 @@ namespace ts {
567567

568568
function writeConfigFile(options: CompilerOptions, fileNames: string[]) {
569569
let currentDirectory = sys.getCurrentDirectory();
570-
let file = combinePaths(currentDirectory, "tsconfig.json");
570+
let file = normalizePath(combinePaths(currentDirectory, "tsconfig.json"));
571571
if (sys.fileExists(file)) {
572572
reportDiagnostic(createCompilerDiagnostic(Diagnostics.A_tsconfig_json_file_is_already_defined_at_Colon_0, file));
573573
}

0 commit comments

Comments
 (0)