mirror of
https://github.com/Microsoft/vscode
synced 2024-10-30 11:10:48 +00:00
Revert "Use rmdirSync instead of rimraf"
This reverts commit a7ae58f4db
.
This change requires node12, but we still support building on older node
versions
This commit is contained in:
parent
0eff78fc42
commit
64ebc978e7
1 changed files with 2 additions and 1 deletions
|
@ -8,6 +8,7 @@
|
||||||
|
|
||||||
const fs = require('fs');
|
const fs = require('fs');
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
|
const rimraf = require('rimraf');
|
||||||
|
|
||||||
const root = path.join(__dirname, 'node_modules', 'typescript');
|
const root = path.join(__dirname, 'node_modules', 'typescript');
|
||||||
|
|
||||||
|
@ -20,7 +21,7 @@ function processRoot() {
|
||||||
if (!toKeep.has(name)) {
|
if (!toKeep.has(name)) {
|
||||||
const filePath = path.join(root, name);
|
const filePath = path.join(root, name);
|
||||||
console.log(`Removed ${filePath}`);
|
console.log(`Removed ${filePath}`);
|
||||||
fs.rmdirSync(filePath, { recursive: true });
|
rimraf.sync(filePath);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue