Quote glob so that it is handled by tslint and not by the shell (#12993)

This commit is contained in:
Andy
2016-11-29 17:18:44 -08:00
committed by GitHub
parent 79757ec498
commit 023789d236

View File

@@ -7,7 +7,7 @@ const path = require("path");
// Path of tslint when `types-publisher` is symlinked
const symlinkedTslintPath = "../node_modules/types-publisher/node_modules/tslint"
const tslintPath = existsSync(path.join(pkg, symlinkedTslintPath)) ? symlinkedTslintPath : "../node_modules/tslint";
const cmd = `node ${tslintPath}/lib/tslint-cli --format stylish **/*.d.ts`;
const cmd = `node ${tslintPath}/lib/tslint-cli --format stylish "**/*.d.ts"`;
console.log(cmd);
try {