From 144b7d9a4af39df2a16d1cd93199eed0c98f1af4 Mon Sep 17 00:00:00 2001 From: saberzero1 Date: Thu, 26 Mar 2026 11:39:20 +0100 Subject: [PATCH] fix(cli): properly handle subdir plugin updates --- quartz.lock.json | 2 +- quartz/cli/plugin-git-handlers.js | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/quartz.lock.json b/quartz.lock.json index b9941bd..cdaddfb 100644 --- a/quartz.lock.json +++ b/quartz.lock.json @@ -196,7 +196,7 @@ "resolved": "https://github.com/saberzero1/quartz-themes.git", "commit": "0af2a0592b72a5971210789fe16bca7ba2b769a3", "subdir": "plugin", - "installedAt": "2026-03-25T23:36:25.409Z" + "installedAt": "2026-03-26T10:39:10.052Z" }, "reader-mode": { "source": "github:quartz-community/reader-mode", diff --git a/quartz/cli/plugin-git-handlers.js b/quartz/cli/plugin-git-handlers.js index 78e1f18..d551ef4 100644 --- a/quartz/cli/plugin-git-handlers.js +++ b/quartz/cli/plugin-git-handlers.js @@ -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 || ""