feat: install local plugin dependencies from package.json (#6302)

Co-authored-by: OpenCode <opencode@example.com>
This commit is contained in:
Matt Silverlock
2025-12-29 11:37:41 -05:00
committed by GitHub
parent fb0e1e4d8d
commit 56b5cdf883
2 changed files with 35 additions and 1 deletions

View File

@@ -191,6 +191,10 @@ export namespace Config {
cwd: dir,
},
).catch(() => {})
// Install any additional dependencies defined in the package.json
// This allows local plugins and custom tools to use external packages
await BunProc.run(["install"], { cwd: dir }).catch(() => {})
}
const COMMAND_GLOB = new Bun.Glob("command/**/*.md")