Added a delete ocmmand to remove unused dist items

Signed-off-by: Avior <florian.bouillon@delta-wings.net>
This commit is contained in:
Florian Bouillon 2021-04-20 14:59:14 +02:00
parent f830547722
commit 5e50e352e5
Signed by: Florian Bouillon
GPG Key ID: 50BD648F12C86AB6

View File

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