actual-tui-plugins
Sebastian Herrlinger 2026-03-09 21:08:36 +01:00
parent ff2800e0e0
commit 3f2e1e446a
1 changed files with 11 additions and 9 deletions

View File

@ -125,15 +125,17 @@ export namespace TuiConfig {
: undefined
const deps: Promise<void>[] = []
for (const dir of unique(directories)) {
if (!dir.endsWith(".opencode") && dir !== Flag.OPENCODE_CONFIG_DIR) continue
deps.push(
(async () => {
const shouldInstall = await Config.needsInstall(dir)
if (!shouldInstall) return
await Config.installDependencies(dir)
})(),
)
if (result.plugin?.length) {
for (const dir of unique(directories)) {
if (!dir.endsWith(".opencode") && dir !== Flag.OPENCODE_CONFIG_DIR) continue
deps.push(
(async () => {
const shouldInstall = await Config.needsInstall(dir)
if (!shouldInstall) return
await Config.installDependencies(dir)
})(),
)
}
}
return {