// Usage: npm run lint -- my-package-name
const pkg = process.argv[2];
const execSync = require("child_process").execSync;
const cmd = `node node_modules/tslint/lib/tslint-cli --format stylish ${pkg}/**/*.d.ts`;
console.log(cmd);
try {
    // Child process writes directly to our own stdout
    execSync(cmd, { stdio: "inherit" });
} catch (_) {
    // Process should have printed out error info
}

@@ -126,39 +126,311 @@
 nst 
-cmd = %60node node_modules/tslint
+existsSync = require(%22fs%22).existsSync;%0A%0A// Path of tslint when %60types-publisher%60 is symlinked%0Aconst symlinkedTslintPath = %22node_modules/types-publisher/node_modules/tslint%22%0Aconst tslintPath =  existsSync(symlinkedTslintPath) ? symlinkedTslintPath : %22node_modules/tslint%22;%0Aconst cmd = %60node $%7BtslintPath%7D
 /lib
@@ -495,16 +495,17 @@
 g(cmd);%0A
+%0A
 try %7B%0A  

Support `npm link`-ed types-publisher in `npm run lint` (#12760)