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

Function resolveExportPath

packages/opencode/src/plugin/shared.ts:61–65  ·  view source on GitHub ↗
(raw: string, dir: string)

Source from the content-addressed store, hash-verified

59}
60
61function resolveExportPath(raw: string, dir: string) {
62 if (raw.startsWith("file://")) return fileURLToPath(raw)
63 if (path.isAbsolute(raw)) return raw
64 return path.resolve(dir, raw)
65}
66
67function isAbsolutePath(raw: string) {
68 return path.isAbsolute(raw) || /^[A-Za-z]:[\\/]/.test(raw)

Callers 1

resolvePackageFileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected