quartz/cli/helpers.js
@@ -3,6 +3,7 @@ import { contentCacheFolder } from "./constants.js" import { spawnSync } from "child_process" import fs from "fs" import { rimraf } from "rimraf" export function escapePath(fp) { return fp @@ -52,3 +53,11 @@ }) await fs.promises.rm(contentCacheFolder, { force: true, recursive: true }) } export async function rmrf(path) { if (os.platform() == "win32") { return rimraf.windows(path) } else { return rimraf(path) } }