From ec00a40aefca73596ab76e3ebe3a8e1129b43688 Mon Sep 17 00:00:00 2001
From: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date: Tue, 27 Jan 2026 18:27:17 +0000
Subject: [PATCH] chore(deps): bump the production-dependencies group with 4 updates (#2289)
---
quartz/cli/helpers.js | 21 ++++++---------------
1 files changed, 6 insertions(+), 15 deletions(-)
diff --git a/quartz/cli/helpers.js b/quartz/cli/helpers.js
index 1bb9b23..46b5018 100644
--- a/quartz/cli/helpers.js
+++ b/quartz/cli/helpers.js
@@ -1,21 +1,20 @@
import { isCancel, outro } from "@clack/prompts"
-import chalk from "chalk"
+import { styleText } from "util"
import { contentCacheFolder } from "./constants.js"
import { spawnSync } from "child_process"
import fs from "fs"
-import { rimraf } from "rimraf"
export function escapePath(fp) {
return fp
.replace(/\\ /g, " ") // unescape spaces
- .replace(/^".*"$/, "$1")
- .replace(/^'.*"$/, "$1")
+ .replace(/^"(.*)"$/, "$1")
+ .replace(/^'(.*)'$/, "$1")
.trim()
}
export function exitIfCancel(val) {
if (isCancel(val)) {
- outro(chalk.red("Exiting"))
+ outro(styleText("red", "Exiting"))
process.exit(0)
} else {
return val
@@ -37,9 +36,9 @@
const flags = ["--no-rebase", "--autostash", "-s", "recursive", "-X", "ours", "--no-edit"]
const out = spawnSync("git", ["pull", ...flags, origin, branch], { stdio: "inherit" })
if (out.stderr) {
- throw new Error(chalk.red(`Error while pulling updates: ${out.stderr}`))
+ throw new Error(styleText("red", `Error while pulling updates: ${out.stderr}`))
} else if (out.status !== 0) {
- throw new Error(chalk.red("Error while pulling updates"))
+ throw new Error(styleText("red", "Error while pulling updates"))
}
}
@@ -53,11 +52,3 @@
})
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)
- }
-}
--
Gitblit v1.10.0