Skip to content

Replace meow with mri#1392

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

Replace meow with mri#1392
Andarist merged 2 commits intochangesets:mainfrom
bluwy:mri

Conversation

@bluwy
Copy link
Contributor

@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

@changeset-bot
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

@codesandbox-ci
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.

@codecov
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