mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-03-27 22:49:20 +08:00
Quote glob so that it is handled by tslint and not by the shell (#12993)
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user