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

Function inlinedOf

ark/aot/unplugin.ts:314–325  ·  view source on GitHub ↗
(opts: PrecompileUnpluginOptions, packages: string[])

Source from the content-addressed store, hash-verified

312 )
313 // arktype left to Node loads as itself, not as the runtime validators use
314 const inlinedOf = (opts: PrecompileUnpluginOptions, packages: string[]) =>
315 opts.runtime !== "arktype" ?
316 [
317 ...runtimePackages,
318 // shadow mode, which reads its validators as arktype's runtime
319 ...(opts.shadow ? ["@ark/aot"] : []),
320 ...packages,
321 ...Object.keys(opts.dependencies ?? {}).filter(
322 name => opts.dependencies![name] === "arktype"
323 )
324 ]
325 : packages
326 let inlined = inlinedOf(opts, packages)
327 const transformedFilter = transformedFilterOf(packages)
328 const applySettings = (read: Options) => {

Callers 3

unplugin.tsFile · 0.85
applySettingsFunction · 0.85
checkSettingsFunction · 0.85

Calls 1

filterMethod · 0.80

Tested by

no test coverage detected