diff --git a/extensions/postinstall.js b/extensions/postinstall.js index da4fa3e9d04..d509a0b327c 100644 --- a/extensions/postinstall.js +++ b/extensions/postinstall.js @@ -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 }); } } }