Skip to content

Commit ec9c9b5

Browse files
authored
fix: handle no env vars for colors (#146)
1 parent 28dcbed commit ec9c9b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/_color.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Colors support for terminal output
22
const noColor = /* @__PURE__ */ (() => {
3-
const env = globalThis.process?.env;
3+
const env = globalThis.process?.env ?? {};
44
return env.NO_COLOR === "1" || env.TERM === "dumb";
55
})();
66

0 commit comments

Comments
 (0)