From 00480a27e01ac0a14e591958fef330f1686a601d Mon Sep 17 00:00:00 2001 From: Phil Kunz Date: Sun, 1 Jul 2018 12:10:36 +0200 Subject: [PATCH] update file structure any provisioning of tscache --- scripts/postinstall.ts | 7 +------ tscache/.gitkeep | 0 2 files changed, 1 insertion(+), 6 deletions(-) delete mode 100644 tscache/.gitkeep 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