Skip to content

fix(cli): require Node >= 22 with clear error for styleText compatibi…#18

Merged
mrsimpson merged 1 commit into
mainfrom
fix-bundling-styled-text
Mar 25, 2026
Merged

fix(cli): require Node >= 22 with clear error for styleText compatibi…#18
mrsimpson merged 1 commit into
mainfrom
fix-bundling-styled-text

Conversation

@mrsimpson
Copy link
Copy Markdown
Contributor

…lity

@clack/prompts 1.1.0 uses Node's built-in styleText (added in 21.7.0), which causes a SyntaxError on older Node versions. Add a bin wrapper that checks the Node version before importing the bundle, and add engines field.

…lity

@clack/prompts 1.1.0 uses Node's built-in styleText (added in 21.7.0),
which causes a SyntaxError on older Node versions. Add a bin wrapper that
checks the Node version before importing the bundle, and add engines field.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@mrsimpson mrsimpson merged commit 6df4d56 into main Mar 25, 2026
1 check passed
@mrsimpson mrsimpson deleted the fix-bundling-styled-text branch March 25, 2026 17:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant