From 4b2e20e7bb72bd2f166520f734046672250953b0 Mon Sep 17 00:00:00 2001 From: mkuhn Date: Mon, 9 Dec 2024 14:58:23 +0100 Subject: [PATCH] refactor: string template --- packages/runtime/scripts/buildSchemas.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/runtime/scripts/buildSchemas.mjs b/packages/runtime/scripts/buildSchemas.mjs index bd0178570..715b84de2 100644 --- a/packages/runtime/scripts/buildSchemas.mjs +++ b/packages/runtime/scripts/buildSchemas.mjs @@ -13,7 +13,7 @@ const contentConfig = { ...runtimeConfig, tsconfig: new URL("../../content/tsconfig.json", import.meta.url).pathname }; -const attributeValues = content.AttributeValues.TYPE_NAMES.map((x) => x + "JSON"); +const attributeValues = content.AttributeValues.TYPE_NAMES.map((x) => `${x}JSON`); const contentSchemaDeclarations = getSchemaDeclarations(contentConfig, (x) => attributeValues.includes(x)); const outputPath = new URL("../src/useCases/common/Schemas.ts", import.meta.url).pathname;