Fix jake lint on Windows

We need to pass `windowsVerbatimArguments: true` to `jake.exec` or it
parses the arguments incorrectly and doesn't actually lint.
This commit is contained in:
Andrew Casey 2018-02-13 16:07:49 -08:00
parent 6ab5d97a5d
commit 9d39ee7302

View File

@ -1308,7 +1308,7 @@ task("lint", ["build-rules"], () => {
: `Gulpfile.ts scripts/generateLocalizedDiagnosticMessages.ts "scripts/tslint/**/*.ts" "src/**/*.ts" --exclude "src/lib/*.d.ts"`;
const cmd = `node node_modules/tslint/bin/tslint ${files} --formatters-dir ./built/local/tslint/formatters --format autolinkableStylish`;
console.log("Linting: " + cmd);
jake.exec([cmd], { interactive: true }, () => {
jake.exec([cmd], { interactive: true, windowsVerbatimArguments: true }, () => {
if (fold.isTravis()) console.log(fold.end("lint"));
complete();
});