From 7de57644094ba93c47a9c202b2f48ae31ea41bb3 Mon Sep 17 00:00:00 2001 From: Avior Date: Thu, 4 Nov 2021 12:03:06 +0100 Subject: [PATCH] fix: bad type (#135) * Fixed path Signed-off-by: Avior * Fixed Builder Signed-off-by: Avior * Fixed Signed-off-by: Avior --- server/compiler/index.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/server/compiler/index.ts b/server/compiler/index.ts index 823ce3aa8..7e48e0a31 100644 --- a/server/compiler/index.ts +++ b/server/compiler/index.ts @@ -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') }