Force folder removal in handlers.js, adjust formatting

This commit is contained in:
fl0werpowers 2025-03-31 13:41:00 +02:00
parent f6aea1abf8
commit ba3e4b5e81
2 changed files with 1 additions and 2 deletions

View File

@ -67,7 +67,6 @@ async function buildQuartz(argv: Argv, mut: Mutex, clientRefresh: () => void) {
const release = await mut.acquire()
perf.addEvent("clean")
await rm(output, { recursive: true, force: true })
console.log(`Cleaned output directory \`${output}\` in ${perf.timeSince("clean")}`)

View File

@ -127,7 +127,7 @@ export async function handleCreate(argv) {
if (contentStat.isSymbolicLink()) {
await fs.promises.unlink(contentFolder)
} else {
await rm(contentFolder, { recursive: true })
await rm(contentFolder, { recursive: true, force: true })
}
}