kabirgh
2024-01-15 30640e3441f9273dfdb9f8cf6ea0a29f0bec04a0
quartz/cli/handlers.js
@@ -5,6 +5,7 @@
import { sassPlugin } from "esbuild-sass-plugin"
import fs from "fs"
import { intro, outro, select, text } from "@clack/prompts"
import { rimraf } from "rimraf"
import chokidar from "chokidar"
import prettyBytes from "pretty-bytes"
import { execSync, spawnSync } from "child_process"
@@ -20,7 +21,6 @@
  gitPull,
  popContentFolder,
  stashContentFolder,
  rmrf,
} from "./helpers.js"
import {
  UPSTREAM_NAME,
@@ -109,7 +109,7 @@
    if (contentStat.isSymbolicLink()) {
      await fs.promises.unlink(contentFolder)
    } else {
      await rmrf(contentFolder)
      await rimraf(contentFolder)
    }
  }