diff options
| author | Aiden Cline <[email protected]> | 2025-12-18 13:42:36 -0600 |
|---|---|---|
| committer | Aiden Cline <[email protected]> | 2025-12-18 13:59:37 -0600 |
| commit | 606cf3b6f2235cac54156f74d4c8b6ff27939965 (patch) | |
| tree | 27b55f378d9299407438aff26affdbd9913ce7d6 | |
| parent | 67cfd7f06b27e8879fdab254939902c9d2934cf1 (diff) | |
| download | opencode-606cf3b6f2235cac54156f74d4c8b6ff27939965.tar.gz opencode-606cf3b6f2235cac54156f74d4c8b6ff27939965.zip | |
chore: rm dead code
| -rw-r--r-- | packages/opencode/src/bun/index.ts | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/packages/opencode/src/bun/index.ts b/packages/opencode/src/bun/index.ts index 5456d0a5b..55bbf7b41 100644 --- a/packages/opencode/src/bun/index.ts +++ b/packages/opencode/src/bun/index.ts @@ -111,22 +111,4 @@ export namespace BunProc { await Bun.write(pkgjson.name!, JSON.stringify(parsed, null, 2)) return mod } - - export async function resolve(pkg: string) { - const local = workspace(pkg) - if (local) return local - const dir = path.join(Global.Path.cache, "node_modules", pkg) - const pkgjson = Bun.file(path.join(dir, "package.json")) - const exists = await pkgjson.exists() - if (exists) return dir - } - - function workspace(pkg: string) { - try { - const target = req.resolve(`${pkg}/package.json`) - return path.dirname(target) - } catch { - return - } - } } |
