Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace meow with mri #1392

Merged
merged 2 commits into from
Jun 24, 2024
Merged

Replace meow with mri #1392

merged 2 commits into from
Jun 24, 2024

Conversation

bluwy
Copy link
Collaborator

@bluwy bluwy commented Jun 24, 2024

meow v6 has 62 transitive dependencies and it would be nice to avoid them in a CLI. While we could also upgrade to meow v13, which has 0 deps (because bundled), it has a higher nodejs version restriction. Also, the CLI here isn't using meow to its fullest potential, only relying on its help message logging and argument parsing.

In this PR, I refactored to use mri for argument parsing only. I've tested the CLI calls manually to prevent any syntax regressions.

Before After
Screenshot 2024-06-24 at 1 43 30 PM image
Screenshot 2024-06-24 at 1 45 02 PM image
Screenshot 2024-06-24 at 1 44 31 PM image
Screenshot 2024-06-24 at 1 43 42 PM image

Copy link

changeset-bot bot commented Jun 24, 2024

🦋 Changeset detected

Latest commit: 98d7759

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@changesets/cli Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Copy link

codecov bot commented Jun 24, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 80.95%. Comparing base (761b2d3) to head (98d7759).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1392   +/-   ##
=======================================
  Coverage   80.95%   80.95%           
=======================================
  Files          54       54           
  Lines        2211     2211           
  Branches      657      656    -1     
=======================================
  Hits         1790     1790           
  Misses        417      417           
  Partials        4        4           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants