patch-package
patch-package copied to clipboard
chore: replace chalk with picocolors
Summary
- Replace
chalk(136KB + deps) withpicocolors(3.8KB, zero deps) for terminal color output - All chained style calls converted to function composition (e.g.
chalk.red.bold(x)→pc.red(pc.bold(x))) chalk.greymapped topc.gray,chalk.blueBrightmapped topc.blueBright
Changes
package.json: swapchalkdep forpicocolorssrc/applyPatches.ts: replace chalk usage (heaviest file — error messages, warnings, status output)src/createIssue.ts: replace chalk.boldsrc/detectPackageManager.ts: replace chalk error formattingsrc/index.ts: replace chalk in help textsrc/makePatch.ts: replace chalk progress indicators and error messagessrc/makeRegExp.ts: replace chalk error formattingsrc/patch/read.ts: replace chalk error formattingsrc/rebase.ts: replace chalk status and error messagessrc/stateFile.ts: replace chalk info messages
Testing
- TypeScript compilation: zero errors
- Unit tests: all passing (467 tests across 9 suites)
- Integration tests: pre-existing failure unrelated to this change (same on master)
Addresses #499
@ds300 LGTM