Possibility of replacing rimraf
and chalk
with native node functionality
#1716
Labels
enhancement
New feature or request
This project relies on two packages that were identified by the e18e effort as redundant, both of which have replacements that are native to Node.js as of v20, the minimum version required for Quartz to function. Removing both packages would cut out 34 dependencies with approximately
0.31MiB
in size.Describe the solution you'd like
I maintain a private quartz fork, in which I identified that both
rimraf
andchalk
can be viably replaced by node equivalents, as suggested by documentation ines-tooling/module-replacements
:chalk
can be replaced withstyleText
function, available as of node v20, the minimum required version for quartzrimraf
can be replaced withfs.rm
function, available as of node v14.14So far, my edits seem to work fine, and could be ported to the main repo without any obvious issues. I did not do any comprehensive testing besides building and running
npm run test
, though, so it would make sense to do some additional checks.The text was updated successfully, but these errors were encountered: