MCPcopy Create free account
hub / github.com/arktypeio/arktype / createDevelopmentHost

Function createDevelopmentHost

ark/aot/host.ts:141–145  ·  view source on GitHub ↗
(opts?: NodeHostOptions)

Source from the content-addressed store, hash-verified

139
140// a development build's, whose arktype/runtime has Node print errors as issues
141export const createDevelopmentHost = (opts?: NodeHostOptions): PrecompileHost =>
142 createNodeHost({
143 ...opts,
144 conditions: [...(opts?.conditions ?? nodeConditions), "development"]
145 })
146
147export const readFile = (path: string): string | undefined =>
148 existsSync(path) ? readFileSync(path, "utf8") : undefined

Callers 3

checkAliasesFunction · 0.90
resolveInFunction · 0.90
precompileFunction · 0.90

Calls 1

createNodeHostFunction · 0.85

Tested by

no test coverage detected