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

Function applySettings

ark/aot/unplugin.ts:328–342  ·  view source on GitHub ↗
(read: Options)

Source from the content-addressed store, hash-verified

326 let inlined = inlinedOf(opts, packages)
327 const transformedFilter = transformedFilterOf(packages)
328 const applySettings = (read: Options) => {
329 settingsRead = read
330 set = withSettingsFile(read)
331 refusePruneIn(set)
332 opts = resolvePrecompileOptions(set)
333 productionHost = createNodeHost(opts)
334 developmentHost = undefined
335 resolveIn(isDevelopment)
336 isStandalone = opts.runtime !== "arktype"
337 variant = resolvedVariantOf(opts)
338 packages = optedInPackagesOf(opts.cwd ?? process.cwd(), opts.dependencies)
339 inlined = inlinedOf(opts, packages)
340 Object.assign(transformedFilter, transformedFilterOf(packages))
341 updateWorker()
342 }
343 // ark.json and the packages that opt in are found from the bundler's root unless cwd is set
344 const setRoot = (root: string) => {
345 if (given?.cwd !== undefined || root === (set.cwd ?? process.cwd())) return

Callers 2

setRootFunction · 0.85
checkSettingsFunction · 0.85

Calls 10

withSettingsFileFunction · 0.90
resolvePrecompileOptionsFunction · 0.90
createNodeHostFunction · 0.90
resolvedVariantOfFunction · 0.90
optedInPackagesOfFunction · 0.90
transformedFilterOfFunction · 0.90
refusePruneInFunction · 0.85
resolveInFunction · 0.85
inlinedOfFunction · 0.85
updateWorkerFunction · 0.85

Tested by

no test coverage detected