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

Function resolveTarget

ark/type/cli.ts:639–640  ·  view source on GitHub ↗
(raw: string)

Source from the content-addressed store, hash-verified

637 }
638 const dir = dirname(shimPath)
639 const resolveTarget = (raw: string) =>
640 resolve(dir, ...raw.split(/[/\\]+/).filter(Boolean))
641 for (const match of text.matchAll(winShimJsPattern)) {
642 const target = resolveTarget(match[1])
643 if (statSync(target, { throwIfNoEntry: false })?.isFile())

Callers 1

unwrapWindowsCmdShimFunction · 0.85

Calls 2

filterMethod · 0.80
resolveFunction · 0.70

Tested by

no test coverage detected