old_contents: // 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
  }
  
new_contents: // Usage: npm run lint -- my-package-name
  const pkg = process.argv[2];
  const execSync = require("child_process").execSync;
  const existsSync = require("fs").existsSync;
  
  // Path of tslint when `types-publisher` is symlinked
  const symlinkedTslintPath = "node_modules/types-publisher/node_modules/tslint"
  const tslintPath =  existsSync(symlinkedTslintPath) ? symlinkedTslintPath : "node_modules/tslint";
  const cmd = `node ${tslintPath}/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
  }
  
subject: Support `npm link`-ed types-publisher in `npm run lint` (#12760)