diff --git a/scripts/postinstall.ts b/scripts/postinstall.ts index ebc1b4b..070841e 100644 --- a/scripts/postinstall.ts +++ b/scripts/postinstall.ts @@ -4,12 +4,7 @@ import * as path from 'path'; const run = async () => { const tsCacheDir = path.join(__dirname, '../tscache'); - const tsCacheFiles: string[] = await smartfile.fs.listFolders(tsCacheDir) as any; - for(const dir of tsCacheFiles) { - console.log(`Removing cache directory ${dir}`); - let dirToRemove = path.join(tsCacheDir, dir); - await smartfile.fs.removeSync(dirToRemove); - } + await smartfile.fs.ensureEmptyDir(tsCacheDir); } run() diff --git a/tscache/.gitkeep b/tscache/.gitkeep deleted file mode 100644 index e69de29..0000000