mirror of
https://github.com/tcgdex/cards-database.git
synced 2025-06-06 21:39:55 +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:
parent
40240f2ab9
commit
7de5764409
@ -2,6 +2,7 @@
|
||||
import { Endpoint } from './compilerInterfaces'
|
||||
import { promises as fs } from 'fs'
|
||||
import { fetchRemoteFile } from './utils/util'
|
||||
import { objectValues } from '@dzeio/object-util'
|
||||
|
||||
const LANGS = ['en', 'fr', 'es', 'it', 'pt', 'de']
|
||||
|
||||
@ -49,7 +50,9 @@ const DIST_FOLDER = './generated'
|
||||
const item = await endpoint.item(common)
|
||||
|
||||
// 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')
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user