Skip to content

Commit

Permalink
fix: hasColor is not a function CI error
Browse files Browse the repository at this point in the history
  • Loading branch information
Mitsunee committed Nov 24, 2024
1 parent ecdb72a commit e81a2eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/formatName.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import { padStr } from "./padStr";
import type { ResolvedLevelOpts } from "./types";

const colorSupport = {
stdout: process.stdout?.hasColors() ?? false,
stderr: process.stderr?.hasColors() ?? false
stdout: process.stdout?.hasColors?.() ?? false,
stderr: process.stderr?.hasColors?.() ?? false
};

function formatNameVar<Name extends string = string>(
Expand Down

0 comments on commit e81a2eb

Please sign in to comment.