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

Function packageMain

packages/opencode/src/plugin/shared.ts:81–87  ·  view source on GitHub ↗
(pkg: PluginPackage)

Source from the content-addressed store, hash-verified

79}
80
81function packageMain(pkg: PluginPackage) {
82 const value = pkg.json.main
83 if (typeof value !== "string") return
84 const next = value.trim()
85 if (!next) return
86 return next
87}
88
89function resolvePackageFile(spec: string, raw: string, kind: string, pkg: PluginPackage) {
90 const resolved = resolveExportPath(raw, pkg.dir)

Callers 1

resolvePackageEntrypointFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected