Jacky Zhao
2023-12-19 b44a79eebaf1664512ef5ff4e3246b3a6a416ff4
quartz/build.ts
@@ -148,14 +148,17 @@
      await rimraf(argv.output)
      await emitContent(ctx, filteredContent)
      console.log(chalk.green(`Done rebuilding in ${perf.timeSince()}`))
    } catch {
    } catch (err) {
      console.log(chalk.yellow(`Rebuild failed. Waiting on a change to fix the error...`))
      if (argv.verbose) {
        console.log(chalk.red(err))
      }
    }
    release()
    clientRefresh()
    toRebuild.clear()
    toRemove.clear()
    release()
  }
  const watcher = chokidar.watch(".", {