fix(cli): properly handle subdir plugin updates

This commit is contained in:
saberzero1 committed 2026-03-26 11:44:52 +01:00
1 parent a876a1e11e
commit 144b7d9a4a
2 files changed
+5 -3

No files matched your search

+4 -2
View File
@@ -847,10 +847,12 @@ export async function handlePluginUpdate(names) {
subdir: entry.subdir,
pluginDir,
})
if (needsBuild(pluginDir)) {
updatedPlugins.push({ name, pluginDir })
}
if (newCommit !== entry.commit) {
entry.commit = newCommit
entry.installedAt = new Date().toISOString()
updatedPlugins.push({ name, pluginDir })
console.log(
styleText(
"green",
@@ -858,7 +860,7 @@ export async function handlePluginUpdate(names) {
),
)
} else {
console.log(styleText("gray", `✓ ${name} already up to date`))
console.log(styleText("gray", `✓ ${name} rebuilt (subdir: ${entry.subdir})`))
}
} else {
const fetchRef = entry.ref || ""