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}`