Fix not-needed script now that types are in types directory (#15373)

This commit is contained in:
Andy 2017-03-24 14:54:49 -07:00 committed by GitHub
parent 40033987a6
commit 18ae90b476

View File

@ -13,7 +13,7 @@ if (process.argv.length !== 5 && process.argv.length !== 6) {
process.exit(1);
}
rmdirRecursive(typingsPackageName);
rmdirRecursive(path.join("types", typingsPackageName));
const notNeededPackages = JSON.parse(fs.readFileSync("notNeededPackages.json", "utf-8"));
notNeededPackages.packages.push({ libraryName, typingsPackageName, sourceRepoURL, asOfVersion });
notNeededPackages.packages.sort((x, y) => x.typingsPackageName < y.typingsPackageName ? -1 : 1);