diff --git a/quartz/build.ts b/quartz/build.ts index 688f735d..07b51fb1 100644 --- a/quartz/build.ts +++ b/quartz/build.ts @@ -78,7 +78,7 @@ async function startServing(ctx: BuildCtx, initialContent: ProcessedContent[]) { let toRebuild: Set = new Set() let toRemove: Set = new Set() async function rebuild(fp: string, action: "add" | "change" | "delete") { - fp = toPosixPath(fp) + fp = toPosixPath(fp) if (!ignored(fp)) { const filePath = joinSegments(argv.directory, fp) as FilePath if (action === "add" || action === "change") { diff --git a/quartz/glob.ts b/quartz/glob.ts index dcfa61b3..7a711600 100644 --- a/quartz/glob.ts +++ b/quartz/glob.ts @@ -1,12 +1,16 @@ -import path from "path"; -import { FilePath } from "./path"; -import { globby } from "globby"; +import path from "path" +import { FilePath } from "./path" +import { globby } from "globby" export function toPosixPath(fp: string): string { return fp.split(path.sep).join("/") } -export async function glob(pattern: string, cwd: string, ignorePatterns: string[]): Promise { +export async function glob( + pattern: string, + cwd: string, + ignorePatterns: string[], +): Promise { const fps = ( await globby(pattern, { cwd,