Use rmdirSync instead of rimraf

This commit is contained in:
Matt Bierner 2021-03-17 14:30:17 -07:00
parent 05e970086c
commit a7ae58f4db

View file

@ -8,7 +8,6 @@
const fs = require('fs');
const path = require('path');
const rimraf = require('rimraf');
const root = path.join(__dirname, 'node_modules', 'typescript');
@ -21,7 +20,7 @@ function processRoot() {
if (!toKeep.has(name)) {
const filePath = path.join(root, name);
console.log(`Removed ${filePath}`);
rimraf.sync(filePath);
fs.rmdirSync(filePath, { recursive: true });
}
}
}