Skip to content

Commit 64ebc97

Browse files
committed
Revert "Use rmdirSync instead of rimraf"
This reverts commit a7ae58f. This change requires node12, but we still support building on older node versions
1 parent 0eff78f commit 64ebc97

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

extensions/postinstall.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
const fs = require('fs');
1010
const path = require('path');
11+
const rimraf = require('rimraf');
1112

1213
const root = path.join(__dirname, 'node_modules', 'typescript');
1314

@@ -20,7 +21,7 @@ function processRoot() {
2021
if (!toKeep.has(name)) {
2122
const filePath = path.join(root, name);
2223
console.log(`Removed ${filePath}`);
23-
fs.rmdirSync(filePath, { recursive: true });
24+
rimraf.sync(filePath);
2425
}
2526
}
2627
}

0 commit comments

Comments
 (0)