MCPcopy Index your code
hub / github.com/anomalyco/opencode / resolveEntryPoint

Function resolveEntryPoint

packages/core/src/npm.ts:50–61  ·  view source on GitHub ↗
(name: string, dir: string)

Source from the content-addressed store, hash-verified

48}
49
50const resolveEntryPoint = (name: string, dir: string): EntryPoint => {
51 let entrypoint: string | undefined
52 try {
53 entrypoint = typeof Bun !== "undefined" ? import.meta.resolve(name, dir) : import.meta.resolve(dir)
54 } catch {
55 entrypoint = undefined
56 }
57 return {
58 directory: dir,
59 entrypoint,
60 }
61}
62
63interface ArboristNode {
64 name: string

Callers 1

npm.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected