Felix Nie
2025-03-19 25979ab216ca2cc2539696420f23be8508d3184f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import { QuartzConfig } from "../cfg"
import { FilePath, FullSlug } from "./path"
 
export interface Argv {
  directory: string
  verbose: boolean
  output: string
  serve: boolean
  watch: boolean
  port: number
  wsPort: number
  remoteDevHost?: string
  concurrency?: number
}
 
export interface BuildCtx {
  buildId: string
  argv: Argv
  cfg: QuartzConfig
  allSlugs: FullSlug[]
  allFiles: FilePath[]
  incremental: boolean
}
 
export type WorkerSerializableBuildCtx = Omit<BuildCtx, "cfg">