1
0
mirror of https://github.com/tcgdex/cards-database.git synced 2025-06-07 13:49:54 +00:00

fix: bad type (#135)

* Fixed path

Signed-off-by: Avior <github@avior.me>

* Fixed Builder

Signed-off-by: Avior <github@avior.me>

* Fixed

Signed-off-by: Avior <github@avior.me>
This commit is contained in:
Florian Bouillon 2021-11-04 12:03:06 +01:00 committed by GitHub
parent 40240f2ab9
commit 7de5764409
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,6 +2,7 @@
import { Endpoint } from './compilerInterfaces' import { Endpoint } from './compilerInterfaces'
import { promises as fs } from 'fs' import { promises as fs } from 'fs'
import { fetchRemoteFile } from './utils/util' import { fetchRemoteFile } from './utils/util'
import { objectValues } from '@dzeio/object-util'
const LANGS = ['en', 'fr', 'es', 'it', 'pt', 'de'] const LANGS = ['en', 'fr', 'es', 'it', 'pt', 'de']
@ -49,7 +50,9 @@ const DIST_FOLDER = './generated'
const item = await endpoint.item(common) const item = await endpoint.item(common)
// Write to file // Write to file
await fs.writeFile(`${folder}/${file.replace('.ts', '')}.json`, JSON.stringify(item)) await fs.writeFile(`${folder}/${file.replace('.ts', '')}.json`, JSON.stringify(
objectValues(item)
))
console.log(file, 'Finished Item') console.log(file, 'Finished Item')
} }