mirror of
https://github.com/tcgdex/compiler.git
synced 2025-04-22 10:42:09 +00:00
Added a delete ocmmand to remove unused dist items
Signed-off-by: Avior <florian.bouillon@delta-wings.net>
This commit is contained in:
parent
f830547722
commit
5e50e352e5
2
main.ts
2
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}`
|
||||
|
Loading…
x
Reference in New Issue
Block a user