From 69bb2d9efc6f6ec979b75c5d2dcff49d080db141 Mon Sep 17 00:00:00 2001 From: William Killerud Date: Tue, 17 Sep 2024 14:53:30 +0200 Subject: [PATCH] fix: turn off all colors, not just publint's --- index.js | 9 ++++----- package-lock.json | 1 - package.json | 1 - 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/index.js b/index.js index 2a27745..0aaf7a1 100644 --- a/index.js +++ b/index.js @@ -1,7 +1,6 @@ import SemanticReleaseError from "@semantic-release/error"; import fs from "node:fs/promises"; import path from "node:path"; -import c from "picocolors"; import { publint } from "publint"; import { formatMessage } from "publint/utils"; @@ -52,7 +51,7 @@ export async function verifyConditions( } if (messages.length === 0) { - logger.log(`${c.green("✓ no issues")}`); + logger.log("✓ no issues"); } else { if (DEBUG) { logger.log(`reading and parsing ${packageJsonPath} contents`); @@ -74,7 +73,7 @@ export async function verifyConditions( let logs = []; if (suggestions.length > 0) { - let title = c.bold("Suggestions:"); + let title = "\nSuggestions:"; logger.log(title); logs.push(title); for (let suggestion of suggestions) { @@ -87,7 +86,7 @@ export async function verifyConditions( } if (warnings.length > 0) { - let title = c.bold(c.yellow("Warnings:")); + let title = "\nWarnings:"; logger.log(title); logs.push(title); for (let warning of warnings) { @@ -100,7 +99,7 @@ export async function verifyConditions( } if (errors.length > 0) { - let title = c.bold(c.red("Errors:")); + let title = "\nErrors:"; logger.log(title); logs.push(title); for (let error of errors) { diff --git a/package-lock.json b/package-lock.json index c4b2f4a..284bade 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,7 +10,6 @@ "license": "MIT", "dependencies": { "@semantic-release/error": "^4.0.0", - "picocolors": "^1.0.1", "publint": "^0.2.11" }, "devDependencies": { diff --git a/package.json b/package.json index 41b2050..b81fd28 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,6 @@ "description": "Run publint as part of the verify step in semantic-release.", "dependencies": { "@semantic-release/error": "^4.0.0", - "picocolors": "^1.0.1", "publint": "^0.2.11" }, "devDependencies": {