fix: rebuild errors on windows ()

This commit is contained in:
kabirgh 2024-01-15 16:39:16 +00:00 committed by GitHub
parent f36376503a
commit 8eec47c340
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 27 additions and 5 deletions
quartz/cli

View file

@ -5,7 +5,6 @@ import chalk from "chalk"
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"
@ -21,6 +20,7 @@ import {
gitPull,
popContentFolder,
stashContentFolder,
rmrf,
} from "./helpers.js"
import {
UPSTREAM_NAME,
@ -109,7 +109,7 @@ export async function handleCreate(argv) {
if (contentStat.isSymbolicLink()) {
await fs.promises.unlink(contentFolder)
} else {
await rimraf(contentFolder)
await rmrf(contentFolder)
}
}