turbo
be67cfd1 - Replace chalk by picocolors (#8390)

Commit
1 year ago
Replace chalk by picocolors (#8390) We replaced chalk with picocolors as it is much more optimal and smaller. Discussions: #8341 In this PR has been the replacement in all the packages inside /packages/, I will make another one for the update of the examples, but I can also include in this same PR. I have deleted in 2 package.json the dependency on: @types/chalk-animation as I checked and it was not being used. Picocolors does not have the function to pass a hexadecimal colour to ASCII, to keep the colours, I have created the function and here 2 things to comment. I have created this function in the most used place in the turbo-utils / logger, but it is also used in 1 specific place, that's why I have used the export. 1. The implementation does not use the ‘bits’ because typescript gives error, if you see it necessary I can change the implementation. 2. I don't know if this is the right place to put this function, do you think it's necessary to create a test? --------- Co-authored-by: torresgol10.itd <torresgol10.itd@gmail.com> Co-authored-by: Anthony Shew <anthony.shew@vercel.com>
Author
Parents
Loading