mirror of
https://github.com/Start9Labs/start-sdk.git
synced 2026-03-30 20:24:47 +00:00
todo for bluj
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
import camelCase from "lodash/camelCase";
|
import camelCase from "lodash/camelCase";
|
||||||
import * as fs from "fs";
|
import * as fs from "fs";
|
||||||
import { string } from "ts-matches";
|
import { string } from "ts-matches";
|
||||||
|
import { unionSelectKey } from "../lib/config/config-types";
|
||||||
|
|
||||||
export async function writeConvertedFile(
|
export async function writeConvertedFile(
|
||||||
file: string,
|
file: string,
|
||||||
@@ -249,13 +250,13 @@ export default async function makeFileContent(
|
|||||||
value.spec["variant-names"] || {}
|
value.spec["variant-names"] || {}
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
// @TODO BluJ
|
||||||
return `List.obj({
|
return `List.obj({
|
||||||
name:${JSON.stringify(value.name || null)},
|
name:${JSON.stringify(value.name || null)},
|
||||||
range:${JSON.stringify(value.range || null)},
|
range:${JSON.stringify(value.range || null)},
|
||||||
spec: {
|
spec: {
|
||||||
spec: {
|
spec: {
|
||||||
${value?.spec?.tag?.id || 'type'}: {
|
${unionSelectKey}: {
|
||||||
type: "union",
|
type: "union",
|
||||||
name: ${JSON.stringify(
|
name: ${JSON.stringify(
|
||||||
value?.spec?.tag?.name || null
|
value?.spec?.tag?.name || null
|
||||||
|
|||||||
Reference in New Issue
Block a user