mirror of
https://github.com/Start9Labs/start-sdk.git
synced 2026-03-26 02:11:56 +00:00
chore: Update old spec to builder
This commit is contained in:
@@ -37,7 +37,7 @@ export default async function makeFileContentFromOld(
|
||||
) {
|
||||
const outputLines: string[] = []
|
||||
outputLines.push(`
|
||||
import {Config, Value, List, Variants} from '${startSdk}/lib/config/builder'
|
||||
import {Config, Value, List, Variants, topConfig} from '${startSdk}/lib/config/builder'
|
||||
import {WrapperData} from '${wrapperData}'
|
||||
`)
|
||||
const data = await inputData
|
||||
@@ -45,7 +45,7 @@ export default async function makeFileContentFromOld(
|
||||
const namedConsts = new Set(["Config", "Value", "List"])
|
||||
const configName = newConst(
|
||||
"configSpec",
|
||||
`Config.withWrapperData<WrapperData>().of(${convertInputSpecInner(data)})`,
|
||||
`topConfig<WrapperData>()(${convertInputSpecInner(data)})`,
|
||||
)
|
||||
const configMatcherName = newConst(
|
||||
"matchConfigSpec",
|
||||
|
||||
Reference in New Issue
Block a user