mirror of
https://github.com/Start9Labs/start-sdk.git
synced 2026-03-26 02:11:56 +00:00
chore: Update the builder to ignore the original naming
This commit is contained in:
@@ -38,12 +38,14 @@ export default async function makeFileContentFromOld(
|
||||
const data = await inputData
|
||||
|
||||
const namedConsts = new Set(["Config", "Value", "List"])
|
||||
const configName = newConst("InputSpec", convertInputSpec(data))
|
||||
const configName = newConst("ConfigSpec", convertInputSpec(data))
|
||||
const configMatcherName = newConst(
|
||||
"matchInputSpec",
|
||||
"matchConfigSpec",
|
||||
`${configName}.validator()`,
|
||||
)
|
||||
outputLines.push(`export type InputSpec = typeof ${configMatcherName}._TYPE;`)
|
||||
outputLines.push(
|
||||
`export type ConfigSpec = typeof ${configMatcherName}._TYPE;`,
|
||||
)
|
||||
|
||||
return outputLines.join("\n")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user