Jacky Zhao
2023-12-18 78b33fc2fb2d2b30e0cdf6fbd50c74efceac1c56
quartz/build.ts
@@ -142,6 +142,7 @@
      const parsedFiles = [...contentMap.values()]
      const filteredContent = filterContent(ctx, parsedFiles)
      // TODO: we can probably traverse the link graph to figure out what's safe to delete here
      // instead of just deleting everything
      await rimraf(argv.output)
@@ -151,10 +152,10 @@
      console.log(chalk.yellow(`Rebuild failed. Waiting on a change to fix the error...`))
    }
    release()
    clientRefresh()
    toRebuild.clear()
    toRemove.clear()
    release()
  }
  const watcher = chokidar.watch(".", {