use posix style paths for all path ops
This commit is contained in:
		@@ -18,7 +18,7 @@ export const AliasRedirects: QuartzEmitterPlugin = () => ({
 | 
			
		||||
 | 
			
		||||
    for (const [_tree, file] of content) {
 | 
			
		||||
      const ogSlug = canonicalizeServer(file.data.slug!)
 | 
			
		||||
      const dir = path.relative(argv.directory, file.dirname ?? argv.directory)
 | 
			
		||||
      const dir = path.posix.relative(argv.directory, file.dirname ?? argv.directory)
 | 
			
		||||
 | 
			
		||||
      let aliases: CanonicalSlug[] = []
 | 
			
		||||
      if (file.data.frontmatter?.aliases) {
 | 
			
		||||
 
 | 
			
		||||
@@ -1,6 +1,5 @@
 | 
			
		||||
import { FilePath, QUARTZ, joinSegments } from "../../path"
 | 
			
		||||
import { QuartzEmitterPlugin } from "../types"
 | 
			
		||||
import path from "path"
 | 
			
		||||
import fs from "fs"
 | 
			
		||||
import { glob } from "../../glob"
 | 
			
		||||
 | 
			
		||||
@@ -10,7 +9,7 @@ export const Static: QuartzEmitterPlugin = () => ({
 | 
			
		||||
    return []
 | 
			
		||||
  },
 | 
			
		||||
  async emit({ argv, cfg }, _content, _resources, _emit): Promise<FilePath[]> {
 | 
			
		||||
    const staticPath = path.join(QUARTZ, "static")
 | 
			
		||||
    const staticPath = joinSegments(QUARTZ, "static")
 | 
			
		||||
    const fps = await glob("**", staticPath, cfg.configuration.ignorePatterns)
 | 
			
		||||
    await fs.promises.cp(staticPath, joinSegments(argv.output, "static"), { recursive: true })
 | 
			
		||||
    return fps.map((fp) => joinSegments("static", fp)) as FilePath[]
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user