Skip to content

Commit 8157606

Browse files
authored
windows separator for tsv (#26377)
1 parent f3c5259 commit 8157606

File tree

1 file changed

+2
-1
lines changed
  • eng/tools/TypeSpecValidation/src

1 file changed

+2
-1
lines changed

eng/tools/TypeSpecValidation/src/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { FormatRule } from "./rules/format.js";
55
import { GitDiffRule } from "./rules/git-diff.js";
66
import { LinterRulesetRule } from "./rules/linter-ruleset.js";
77
import { NpmPrefixRule } from "./rules/npm-prefix.js";
8+
import path from "path";
89
import { TsvRunnerHost } from "./tsv-runner-host.js";
910

1011
export async function main() {
@@ -16,7 +17,7 @@ export async function main() {
1617
},
1718
};
1819
const parsedArgs = parseArgs({ args, options, allowPositionals: true } as ParseArgsConfig);
19-
const folder = parsedArgs.positionals[0];
20+
const folder = parsedArgs.positionals[0].split(path.sep).join("/");
2021
console.log("Running TypeSpecValidation on folder:", folder);
2122

2223
const host = new TsvRunnerHost();

0 commit comments

Comments
 (0)