1
0
mirror of https://github.com/tcgdex/cards-database.git synced 2025-06-15 17:09:19 +00:00

feat: Add an updated field to the card field (#460)

This commit is contained in:
2024-05-12 00:51:56 +02:00
committed by GitHub
parent e4aba3bf1c
commit c476d82618
6 changed files with 76 additions and 5 deletions

View File

@ -2,7 +2,7 @@
import { promises as fs } from 'fs'
import { SupportedLanguages } from '../../interfaces'
import { FileFunction } from './compilerInterfaces'
import { fetchRemoteFile } from './utils/util'
import { fetchRemoteFile, loadLastEdits } from './utils/util'
const LANGS: Array<SupportedLanguages> = ['en', 'fr', 'es', 'it', 'pt', 'de']
@ -20,6 +20,8 @@ const DIST_FOLDER = './generated'
await fs.rm(DIST_FOLDER, {recursive: true})
} catch {}
console.log('Loading files last edit')
await loadLastEdits()
console.log('Let\'s GO !')