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

Function importBuilt

ark/repo/testBuild.ts:55–56  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

53const resolve = createRequire(fromPackage("type", "package.json")).resolve
54
55const importBuilt = (path: string): Promise<Record<string, unknown>> =>
56 import(pathToFileURL(resolve(path)).href)
57
58const entryUrls = (pkg: string) =>
59 publicEntryPoints(fileURLToPath(fromPackage(pkg))).map(

Callers 2

testBuild.tsFile · 0.85
runtimeVariantFunction · 0.85

Calls 1

resolveFunction · 0.50

Tested by

no test coverage detected