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

Function fromPackage

ark/repo/testBuild.ts:50–51  ·  view source on GitHub ↗
(pkg: string, path = "")

Source from the content-addressed store, hash-verified

48const packages = ["regex", "type"]
49
50const fromPackage = (pkg: string, path = "") =>
51 new URL(`../${pkg}/${path}`, import.meta.url)
52
53const resolve = createRequire(fromPackage("type", "package.json")).resolve
54

Callers 5

testBuild.tsFile · 0.85
entryUrlsFunction · 0.85
modulesOfFunction · 0.85
tsDirFunction · 0.85
bundledLengthOfFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected