Skip to content

Replace meow with mri - #1392

Merged
Andarist merged 2 commits into
changesets:mainfrom
bluwy:mri
Jun 24, 2024
Merged

Andarist merged 2 commits into
changesets:mainfrom
bluwy:mri

Conversation

@bluwy

@bluwy bluwy commented Jun 24, 2024

Copy link
Copy Markdown
Member

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

@changeset-bot

changeset-bot Bot commented Jun 24, 2024

Copy link
Copy Markdown

🦋 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

@codesandbox-ci

Copy link
Copy Markdown

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.

@codecov

codecov Bot commented Jun 24, 2024

Copy link
Copy Markdown

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