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

Function driverOptionsOf

ark/aot/host.ts:544–554  ·  view source on GitHub ↗
(
	opts: PrecompilePluginOptions,
	isTestRunner: boolean
)

Source from the content-addressed store, hash-verified

542})
543
544export const driverOptionsOf = (
545 opts: PrecompilePluginOptions,
546 isTestRunner: boolean
547): PrecompilePluginOptions => ({
548 ...withEnvironment(opts, {
549 production: isProductionEnv(),
550 testing: isTestRunner
551 }),
552 // a standalone module imports what it shares, which the driver serves
553 inline: opts.runtime === "arktype"
554})
555
556export const reportDiagnostics = (
557 diagnostics: RenderedDiagnostics | undefined,

Callers 2

registerFunction · 0.90
precompileFunction · 0.90

Calls 2

withEnvironmentFunction · 0.90
isProductionEnvFunction · 0.90

Tested by

no test coverage detected