INNER CODE UNIT · TypeScript
paths
tcgdex/cards-database · server/compiler/index.ts:15
const paths = (await fs.readdir('./compiler/endpoints')).filter((p) => p.endsWith('.ts'))
// Prefetch the pictures at the start as it can bug because of bad connection
console.log('1. Loading remote sources')
await fetchRemoteFile('https://assets.tcgdex.net/datas.json')
// Delete dist folder to be sure to have a clean base
try {
await fs.rm(DIST_FOLDER, {recursive: true})
} catch {}
console.log('\n2. Loading informations from GIT')
await loadLastEdits()
console.log('\n3. Compiling Files')
// Process each languages
let progressIndex = 0