-
Notifications
You must be signed in to change notification settings - Fork 488
Description
Is your feature request related to a problem? Please describe.
Recently, the Ecosystem Performance was formed to cleanup, speedup, levelup the JavaScript Ecosystem.
Socket Security team wrote a blog post about it https://socket.dev/blog/javascript-community-launches-e18e-initiative-to-improve-ecosystem-performance
On the e18e cleanup channel on Discord, multiple solutions are being discussed. One of them is to replace micromatch with picomatch.
I see that jscodeshift uses micromatch
Line 40 in 64bb672
| "micromatch": "^4.0.7", |
Only isMatched API of micromatch is used, and it's called once to decide whether to ignore files
jscodeshift/src/ignoreFiles.js
Line 62 in 64bb672
| const matched = matchers.length ? mm.isMatch(path, matchers, { dot:true }) : false; |
Describe the solution you'd like
Replace micromatch with a lighter alternative, like picomatch.
The [email protected] has publish size of 54.9 kB, and install size of 235 kB
On other hand picomatch has install/publish size of 83.2 kB with no dependencies
Npm Trends: https://npmtrends.com/micromatch-vs-picomatch

