Skip to content

chore(deps): replace chalk with picocolors#962

Open
roli-lpci wants to merge 1 commit intogoogle:mainfrom
roli-lpci:chore/replace-chalk-with-picocolors
Open

chore(deps): replace chalk with picocolors#962
roli-lpci wants to merge 1 commit intogoogle:mainfrom
roli-lpci:chore/replace-chalk-with-picocolors

Conversation

@roli-lpci
Copy link
Copy Markdown

Summary

  • Replace chalk (4 transitive dependencies: chalk, ansi-styles, supports-color, has-flag) with picocolors (zero dependencies) for terminal color output
  • All usage is single-method calls (bold, red, green, gray, blue) which picocolors supports directly
  • Reduces production dependency tree surface area

Changes

  • src/init.ts — import and 6 call sites updated
  • src/clean.ts — import and 5 call sites updated
  • test/kitchen.ts — import and 1 call site updated
  • package.json — swap chalk for picocolors in dependencies
  • package-lock.json — regenerated

Testing

  • npm run compile — clean
  • npm run lint — clean
  • npm test — 32/32 passing, 100% function coverage

Replace chalk (4 transitive dependencies) with picocolors (zero
transitive dependencies) for terminal color output. All usage is
single-method calls (bold, red, green, gray, blue) which are directly
supported by picocolors.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@google-cla
Copy link
Copy Markdown

google-cla bot commented Feb 28, 2026

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@roli-lpci
Copy link
Copy Markdown
Author

@googlebot I signed it.

@tonycoco
Copy link
Copy Markdown
Collaborator

I quite like this change to reduce deps. Will review when I get a minute. Thanks!

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.

2 participants