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

Function storeDirOf

ark/aot/unplugin.ts:418–424  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

416 let storeDir: string | undefined
417 // read once the bundler has applied its defaults
418 const storeDirOf = () => {
419 if (storeDir === undefined && compiler) {
420 storeDir = storeDirIn(compiler.options.cache)
421 if (storeDir) mkdirSync(storeDir, { recursive: true })
422 }
423 return storeDir
424 }
425 // an external arktype loads apart from the runtime its validators use
426 const checkExternal = (
427 isExternal: (specifier: string) => boolean,

Callers 2

loadModuleFunction · 0.85
transformFunction · 0.85

Calls 1

storeDirInFunction · 0.85

Tested by

no test coverage detected