Skip to content

Commit

Permalink
fix: turn off all colors, not just publint's
Browse files Browse the repository at this point in the history
  • Loading branch information
wkillerud committed Sep 17, 2024
1 parent 68b0560 commit 8c2eaf0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
7 changes: 3 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
@@ -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";

Expand Down Expand Up @@ -74,7 +73,7 @@ export async function verifyConditions(
let logs = [];

if (suggestions.length > 0) {
let title = c.bold("Suggestions:");
let title = "Suggestions:";
logger.log(title);
logs.push(title);
for (let suggestion of suggestions) {
Expand All @@ -87,7 +86,7 @@ export async function verifyConditions(
}

if (warnings.length > 0) {
let title = c.bold(c.yellow("Warnings:"));
let title = "Warnings:";
logger.log(title);
logs.push(title);
for (let warning of warnings) {
Expand All @@ -100,7 +99,7 @@ export async function verifyConditions(
}

if (errors.length > 0) {
let title = c.bold(c.red("Errors:"));
let title = "Errors:";
logger.log(title);
logs.push(title);
for (let error of errors) {
Expand Down
1 change: 0 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down

0 comments on commit 8c2eaf0

Please sign in to comment.