jakejs/jake

Replace `chalk` with `picocolors`

Opened this issue · 4 comments

I want to propose to replace the chalk dependency with the smaller and faster picocolors package.
As part of the e18e initiative (ecosystem cleanup), we try to reduce the burden of old or big libs and modernize the ecosystem.

chalk alone accounted for a whopping 854.69 GB of traffic last month whenever it got installed as part of jake.
The tar size of 13.40Kb doesn't seem much but jakes tar itself is only 40.70 KB so its noteworthy

Since this is a dropin replacement, it is super easy to do and I would be happy to provice a PR for it

mde commented

I would be very happy to merge a PR that implements this. Thank you!

Awesome! I created a PR :)

@mde I also noticed, that the package lists minimatch as dependency but I cant find it nowhere in the code. Is it still used?

And would you be open for PRs updating your general deps? They seem to be quite a bit outdated

mde commented

I would love PRs that update deps. I would have to look for minimatch. It's probably a dependency of a dependency, somewhere deeper in the tree.