Closed userquin closed 1 month ago
@benmccann suggests picocolors
(cjs only), the size is a little smaller than yoctocolors
(esm only).
Created a pr using picocolors
@userquin I think yoctocolors
is better because yoctocolors
is tree-shakable while picocolors
is not
don't merge yet, I'm going to include yoctocolors and cleanup
There is no difference using picocolors
or yoctocolors
(tgz file):
on left picocolors, on right yoctocolors
@userquin Thanks
I'm going to use tinyrainbow
, we're using it in Vitest
(Upps: 263 bytes bigger using tinyrainbow
)
You should stick to picocolors imo and open issues upstream if you think there's a limitation
It has been adopted by most other large projects (and more to come). Think it is better to align than take yet another rehash of the same algorithm/implementation
pico is also the fastest
Description
This PR includes:
find-up
, replaced withpackage-manager-detector
(find-up 6 dependencies and package-manager-detector 0 dependencies)fast-glob
withtinyglobby
(fast-glob 17 dependencies and tinyglobby 2 dependencies)@jsdevtools/ez-spawn
withtinyexec
(@jsdevtools/ez-spawn 9 dependencies and tinyexec 0 dependencies)kleur
withpicocolors
(kleur 0 dependencies and picocolors 0 dependencies)Right nowni
build is failing.ni
tgz file from 107KB to 77KBWe should remove agent.ts module, not being used.(agent
module re-exporting pm detector stuff)Linked Issues
Additional context