Skip to content

Commit a5d77b1

Browse files
committed
fix: use default import of picocolors
This causes an error in some node versions. Changing it to a default import seems to solve it (and is consistent with the rest of the repo).
1 parent 0784c35 commit a5d77b1

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

.changeset/healthy-kings-play.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@clack/prompts": patch
3+
---
4+
5+
Use a default import for picocolors to avoid run time errors in some environments.

packages/prompts/src/task-log.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type { Writable } from 'node:stream';
22
import { getColumns } from '@clack/core';
3-
import * as color from 'picocolors';
3+
import color from 'picocolors';
44
import { erase } from 'sisteransi';
55
import { type CommonOptions, S_BAR, S_STEP_SUBMIT, isCI as isCIFn } from './common.js';
66
import { log } from './log.js';

0 commit comments

Comments
 (0)