From 1522571039755787f10497e4f047becbb8a7ebf7 Mon Sep 17 00:00:00 2001 From: Steven Smith Date: Mon, 16 Mar 2026 20:36:13 -0400 Subject: [PATCH] This fixes the issues with build --serve --- quartz/cli/handlers.js | 8 ++++---- quartz/cli/plugin-handlers.js | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/quartz/cli/handlers.js b/quartz/cli/handlers.js index 2cd824593..0bd45d692 100644 --- a/quartz/cli/handlers.js +++ b/quartz/cli/handlers.js @@ -406,7 +406,7 @@ export async function handleBuild(argv) { const result = await ctx.rebuild().catch((err) => { console.error(`${styleText("red", "Couldn't parse Quartz configuration:")} ${fp}`) - console.log(`Reason: ${styleText("grey", err.message ?? String(err))}`) + console.log(`Reason: ${styleText("gray", err.message ?? String(err))}`) process.exit(1) }) release() @@ -483,7 +483,7 @@ export async function handleBuild(argv) { status >= 200 && status < 300 ? styleText("green", `[${status}]`) : styleText("red", `[${status}]`) - console.log(statusString + styleText("grey", ` ${argv.baseDir}${req.url}`)) + console.log(statusString + styleText("gray", ` ${argv.baseDir}${req.url}`)) release() } @@ -494,7 +494,7 @@ export async function handleBuild(argv) { }) console.log( styleText("yellow", "[302]") + - styleText("grey", ` ${argv.baseDir}${req.url} -> ${newFp}`), + styleText("gray", ` ${argv.baseDir}${req.url} -> ${newFp}`), ) res.end() } @@ -570,7 +570,7 @@ export async function handleBuild(argv) { .on("change", () => build(clientRefresh)) .on("unlink", () => build(clientRefresh)) - console.log(styleText("grey", "hint: exit with ctrl+c")) + console.log(styleText("gray", "hint: exit with ctrl+c")) } } diff --git a/quartz/cli/plugin-handlers.js b/quartz/cli/plugin-handlers.js index 8ee6e6cfe..ce5b18ecf 100644 --- a/quartz/cli/plugin-handlers.js +++ b/quartz/cli/plugin-handlers.js @@ -73,7 +73,7 @@ export async function handlePluginSearch(query) { const searchQuery = query || "quartz-plugin" console.log(`Searching npm for packages matching "${searchQuery}"...`) - console.log(styleText("grey", "(This may take a moment)\n")) + console.log(styleText("gray", "(This may take a moment)\n")) try { const result = execSync(`npm search ${searchQuery} --json`, { encoding: "utf-8" }) @@ -96,7 +96,7 @@ export async function handlePluginSearch(query) { for (const pkg of quartzPlugins.slice(0, 20)) { console.log(` ${styleText("cyan", pkg.name)}@${pkg.version}`) if (pkg.description) { - console.log(` ${styleText("grey", pkg.description)}`) + console.log(` ${styleText("gray", pkg.description)}`) } console.log() }