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 69bb2d9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
9 changes: 4 additions & 5 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 @@ -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`);
Expand All @@ -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) {
Expand All @@ -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) {
Expand All @@ -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) {
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 69bb2d9

Please sign in to comment.