Skip to content

Commit 02c0746

Browse files
committed
fix: optional getColorDepth
1 parent 503f80e commit 02c0746

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
"play": "vite playground",
4242
"typecheck": "tsc --noEmit",
4343
"format": "prettier --cache --write .",
44-
"release": "bumpp && pnpm publish",
44+
"release": "bumpp",
4545
"prepublishOnly": "pnpm run build"
4646
},
4747
"peerDependencies": {

src/node.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export function log(...args: any[]): void {
1515
}
1616

1717
export const colors: number[] =
18-
process.stderr.getColorDepth() > 2
18+
process.stderr.getColorDepth && process.stderr.getColorDepth() > 2
1919
? [
2020
20, 21, 26, 27, 32, 33, 38, 39, 40, 41, 42, 43, 44, 45, 56, 57, 62, 63,
2121
68, 69, 74, 75, 76, 77, 78, 79, 80, 81, 92, 93, 98, 99, 112, 113, 128,

0 commit comments

Comments
 (0)