From 78ed2d564c9d625b42e20e5140c43bfd66f2b636 Mon Sep 17 00:00:00 2001 From: Adam Dehnel Date: Thu, 10 Sep 2026 15:15:04 -0500 Subject: [PATCH] debug: add more verbose logs for publish command --- packages/cli/src/commands/publish.ts | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/packages/cli/src/commands/publish.ts b/packages/cli/src/commands/publish.ts index d8964d5..951fde4 100644 --- a/packages/cli/src/commands/publish.ts +++ b/packages/cli/src/commands/publish.ts @@ -297,19 +297,27 @@ export const publishCommand = command({ } } - let postUrl = ""; + log.message( + ` ${icon} ${post.frontmatter.title} (${reason})${bskyNote}`, + ); if (verbose) { const postPath = resolvePostPath( post, config.pathPrefix, config.pathTemplate, ); - postUrl = `\n ${config.siteUrl}${postPath}`; - } + log.message(` Post URL: ${ config.siteUrl }${ postPath }`); + if (post.frontmatter.ogImage) { log.message( - ` ${icon} ${post.frontmatter.title} (${reason})${bskyNote}${postUrl}`, + post.coverImagePath + ? ` Resolved cover image for ${post.frontmatter.title}: ${post.frontmatter.ogImage}` + : ` Failed to resolve cover image for ${post.frontmatter.title}: ${post.frontmatter.ogImage}`, ); - + } + log.message(` Frontmatter:\n${ Object.entries(post.frontmatter) + .map(([key, value]) => ` - ${key}: ${value}`) + .join("\n") }`); + } const postValid = await validatePost(post); isValid &&= postValid; } -- 2.51.2