From fe245d920bdb51cea1700de753d256fc17bbf702 Mon Sep 17 00:00:00 2001 From: bfahrenfort Date: Sun, 24 Aug 2025 09:38:59 +0200 Subject: [PATCH] fix(contentIndex): replace Chalk with picocolors --- package-lock.json | 1 + package.json | 1 + quartz/plugins/emitters/contentIndex.tsx | 4 ++-- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/package-lock.json b/package-lock.json index 2d50e86d9..d0eaf0483 100644 --- a/package-lock.json +++ b/package-lock.json @@ -35,6 +35,7 @@ "mdast-util-to-string": "^4.0.0", "micromorph": "^0.4.5", "minimatch": "^10.0.3", + "picocolors": "^1.1.1", "pixi.js": "^8.12.0", "preact": "^10.27.0", "preact-render-to-string": "^6.5.13", diff --git a/package.json b/package.json index 790af38b0..132b6e204 100644 --- a/package.json +++ b/package.json @@ -61,6 +61,7 @@ "mdast-util-to-string": "^4.0.0", "micromorph": "^0.4.5", "minimatch": "^10.0.3", + "picocolors": "^1.1.1", "pixi.js": "^8.12.0", "preact": "^10.27.0", "preact-render-to-string": "^6.5.13", diff --git a/quartz/plugins/emitters/contentIndex.tsx b/quartz/plugins/emitters/contentIndex.tsx index 39c9cbcce..e29d860b8 100644 --- a/quartz/plugins/emitters/contentIndex.tsx +++ b/quartz/plugins/emitters/contentIndex.tsx @@ -8,7 +8,7 @@ import { toHtml } from "hast-util-to-html" import { write } from "./helpers" import { i18n } from "../../i18n" import { BuildCtx } from "../../util/ctx" -import chalk from "chalk" +import pc from "picocolors" import { ProcessedContent } from "../vfile" type ContentIndex = Tree @@ -125,7 +125,7 @@ export const ContentIndex: QuartzEmitterPlugin> = (opts) => { ) ) { console.warn( - chalk.yellow(`Warning: contentIndex: + pc.yellow(`Warning: contentIndex: content/ folder is missing an index.md. RSS feeds and sitemap will not be generated. If you still wish to generate these files, add: bypassIndexCheck: true,