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

Function storeDirIn

ark/aot/unplugin.ts:3317–3326  ·  view source on GitHub ↗
(cache: unknown)

Source from the content-addressed store, hash-verified

3315
3316// in webpack's filesystem cache or Rspack's persistent one, else ""
3317const storeDirIn = (cache: unknown): string => {
3318 const options = cache as
3319 | { type?: string; cacheLocation?: string; storage?: { location?: string } }
3320 | undefined
3321 const dir =
3322 options?.type === "filesystem" ? options.cacheLocation
3323 : options?.type === "persistent" ? options.storage?.location
3324 : undefined
3325 return dir ? join(dir, "arktype") : ""
3326}
3327
3328// webpack's resource for a virtual module, e.g. `arktype:~arktype/<hash>`
3329const moduleScheme = "arktype:"

Callers 1

storeDirOfFunction · 0.85

Calls 1

joinFunction · 0.85

Tested by

no test coverage detected