From a6904be6f1b7e6ed6c4dcbe0c7f0decc4b378695 Mon Sep 17 00:00:00 2001 From: Jacky Zhao Date: Mon, 7 Aug 2023 21:51:23 -0700 Subject: [PATCH] format --- quartz/build.ts | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/quartz/build.ts b/quartz/build.ts index 05edf865..e6dc96aa 100644 --- a/quartz/build.ts +++ b/quartz/build.ts @@ -115,7 +115,6 @@ async function startServing( return } - if (action === "add" || action === "change") { toRebuild.add(filePath) } else if (action === "delete") { @@ -133,10 +132,9 @@ async function startServing( try { const filesToRebuild = [...toRebuild].filter((fp) => !toRemove.has(fp)) - const trackedSlugs = - [...new Set([...contentMap.keys(), ...toRebuild, ...trackedAssets])] - .filter((fp) => !toRemove.has(fp)) - .map((fp) => slugifyFilePath(path.posix.relative(argv.directory, fp) as FilePath)) + const trackedSlugs = [...new Set([...contentMap.keys(), ...toRebuild, ...trackedAssets])] + .filter((fp) => !toRemove.has(fp)) + .map((fp) => slugifyFilePath(path.posix.relative(argv.directory, fp) as FilePath)) ctx.allSlugs = [...new Set([...initialSlugs, ...trackedSlugs])] const parsedContent = await parseMarkdown(ctx, filesToRebuild)