Skip to content

refactor(cli): replace picocolors with styleText#1070

Open
dreyfus92 wants to merge 2 commits intonpmx-dev:mainfrom
dreyfus92:replace/pc-styletext
Open

refactor(cli): replace picocolors with styleText#1070
dreyfus92 wants to merge 2 commits intonpmx-dev:mainfrom
dreyfus92:replace/pc-styletext

Conversation

@dreyfus92
Copy link

Replaces the picocolors dependency with Node’s built-in util.styleText in the CLI. The CLI already targets Node ≥24, where styleText is available.

@vercel
Copy link

vercel bot commented Feb 6, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
docs.npmx.dev Error Error Feb 6, 2026 4:41am
npmx.dev Ready Ready Preview, Comment Feb 6, 2026 4:41am
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
npmx-lunaria Ignored Ignored Feb 6, 2026 4:41am

Request Review

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Feb 6, 2026

📝 Walkthrough

Walkthrough

This pull request removes the picocolors external dependency from the CLI package and replaces all text styling functionality with the built-in styleText function from node:util. Changes affect three files: the package.json dependency declaration is removed, cli.ts replaces picocolors imports and styling calls with styleText equivalents, and logger.ts updates all text styling operations throughout the module to use styleText instead of the picocolors palette functions. Additionally, a new public logInfo function is introduced in logger.ts.

🚥 Pre-merge checks | ✅ 1
✅ Passed checks (1 passed)
Check name Status Explanation
Description check ✅ Passed The pull request description accurately describes the changeset, which replaces picocolors with Node's built-in styleText across multiple CLI files.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Comment @coderabbitai help to get the list of available commands and usage tips.

@codecov
Copy link

codecov bot commented Feb 6, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ All tests successful. No failed tests found.

📢 Thoughts on this report? Let us know!

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