Skip to content

Commit 15644ba

Browse files
committed
🐛 Fix NO_COLOR not being recognized in Node.js
1 parent 1075ac0 commit 15644ba

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

deno.lock

+11
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/colors.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const { Deno, process } = globalThis as any;
1111
const noColor = typeof Deno?.noColor === "boolean"
1212
? Deno.noColor as boolean
1313
: typeof process !== "undefined"
14-
? process.env.NO_COLOR === "true"
14+
? "NO_COLOR" in process?.env
1515
: false;
1616

1717
let enabled = !noColor;

0 commit comments

Comments
 (0)