From 01768c6e1a878b7707d2ef14834d5bd7b1914d08 Mon Sep 17 00:00:00 2001 From: Matt Hill Date: Tue, 28 Mar 2023 09:18:41 -0600 Subject: [PATCH] todo for bluj --- scripts/oldSpecToBuilder.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/oldSpecToBuilder.ts b/scripts/oldSpecToBuilder.ts index 258150d..be82e86 100644 --- a/scripts/oldSpecToBuilder.ts +++ b/scripts/oldSpecToBuilder.ts @@ -1,6 +1,7 @@ import camelCase from "lodash/camelCase"; import * as fs from "fs"; import { string } from "ts-matches"; +import { unionSelectKey } from "../lib/config/config-types"; export async function writeConvertedFile( file: string, @@ -249,13 +250,13 @@ export default async function makeFileContent( value.spec["variant-names"] || {} ) ); - + // @TODO BluJ return `List.obj({ name:${JSON.stringify(value.name || null)}, range:${JSON.stringify(value.range || null)}, spec: { spec: { - ${value?.spec?.tag?.id || 'type'}: { + ${unionSelectKey}: { type: "union", name: ${JSON.stringify( value?.spec?.tag?.name || null