Skip to content

Commit 51fb075

Browse files
authored
Use / in paths in the auto-generated files' header (microsoft#24883)
1 parent d0391d2 commit 51fb075

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/processDiagnosticMessages.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ function checkForUniqueCodes(diagnosticTable: InputDiagnosticMessageTable) {
6060
function buildInfoFileOutput(messageTable: InputDiagnosticMessageTable, inputFilePathRel: string, thisFilePathRel: string): string {
6161
let result =
6262
"// <auto-generated />\r\n" +
63-
"// generated from '" + inputFilePathRel + "' by '" + thisFilePathRel + "'\r\n" +
63+
"// generated from '" + inputFilePathRel + "' by '" + thisFilePathRel.replace(/\\/g, '/') + "'\r\n" +
6464
"/* @internal */\r\n" +
6565
"namespace ts {\r\n" +
6666
" function diag(code: number, category: DiagnosticCategory, key: string, message: string, reportsUnnecessary?: {}): DiagnosticMessage {\r\n" +
@@ -119,4 +119,4 @@ function convertPropertyName(origName: string): string {
119119
return result;
120120
}
121121

122-
main();
122+
main();

0 commit comments

Comments
 (0)