fix(contentIndex): replace Chalk with picocolors

This commit is contained in:
bfahrenfort 2025-08-24 09:38:59 +02:00
parent 53602442c0
commit fe245d920b
3 changed files with 4 additions and 2 deletions

1
package-lock.json generated
View File

@ -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",

View File

@ -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",

View File

@ -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<TreeNode>
@ -125,7 +125,7 @@ export const ContentIndex: QuartzEmitterPlugin<Partial<Options>> = (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,