(read: Options)
| 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 |
no test coverage detected