From 5e50e352e5698940dc34f5278515c2ef69a39a49 Mon Sep 17 00:00:00 2001 From: Avior Date: Tue, 20 Apr 2021 14:59:14 +0200 Subject: [PATCH] Added a delete ocmmand to remove unused dist items Signed-off-by: Avior --- main.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main.ts b/main.ts index 3046143..80456ff 100644 --- a/main.ts +++ b/main.ts @@ -17,6 +17,8 @@ const VERSION = 'v2' console.log('Prefetching pictures') await fetchRemoteFile(`https://assets.tcgdex.net/datas.json`) + await fs.rm(`./dist/${VERSION}/${lang}`, {recursive: true, force: true}) + console.log('Let\'s GO !') for (const file of paths) { const path = `./endpoints/${file}`