square / find-yarn-workspace-root

Algorithm for finding the root of a yarn workspace, extracted from yarnpkg.com
Apache License 2.0
49 stars 8 forks source link

Update micromatch / reduce the number of dependencies #25

Closed fson closed 4 years ago

fson commented 4 years ago

Please consider this patch. This change shrinks the installed size of this package ~90% and reduces the number of dependencies from 70 to 6.

I tested this by running npm pack in the project folder and installed the two versions in two empty yarn init'd projects:

# With micromatch 3.1.4

% du -d 0 -h node_modules
3.7M    node_modules
% ls node_modules | wc -l
      71

# With micromatch 4.0.2

% du -d 0 -h node_modules 
372K    node_modules
% ls node_modules | wc -l
       7
bmish commented 4 years ago

Thanks for the PR! I merged this change in #28 and will release a major version update soon.

bmish commented 4 years ago

Published in v2.0.0. Let me know if you need anything else!