Skip to content

Conversation

@spanishpear
Copy link
Contributor

@spanishpear spanishpear commented Apr 26, 2025

Hi!

What is this PR

This PR migrates globby to tinyglobby, and reducing the total oclif/core dependencies by ~21 (see graphs below)

Tinyglobby has ~52M downloads a month, used by many other large consumers (vite, pnpm, etc) - it has only 2 subdependencies, compared to globby's 23 and fast-glob's 17.

This will reduce the total #deps down by 21 🥳 It's also in-line with the e18e ecosystem cleanup initative

Context

I was looking at oclif's dependency graph https://npmgraph.js.org/?q=%40oclif%2Fcore#select=exact%3Aglobby%4011.1.0 and noticed that globby was being pulled in with it's 23 dependencies, for just one line of usage!
{31359E48-E228-46DB-BC50-F4CEDD908AFD}

Compared to after this PR
{DE8FF868-D9E3-421A-81FB-FF3642D3F5B9}

Aside

I've read https://github.com/oclif/core/blob/main/CONRTIBUTING.md#dependencies and its note around Dependencies - but as this was not a dependency bump, i have raised this :)

Thank you for your time!

@salesforce-cla
Copy link

Thanks for the contribution! Before we can merge this, we need @spanishpear to sign the Salesforce Inc. Contributor License Agreement.

@spanishpear spanishpear changed the title chore: migrate from globby to tinyglobby enhancement: migrate from globby to tinyglobby Apr 26, 2025
@spanishpear spanishpear changed the title enhancement: migrate from globby to tinyglobby feat: migrate from globby to tinyglobby May 18, 2025
@spanishpear
Copy link
Contributor Author

👋 @cristiand391 apologies for the ping - would you be okay to take a look at this? ❤️

Thanks!

@mdonnalley
Copy link
Contributor

@spanishpear Thanks - this is a great contribution 🏆

I'm going to merge this into a separate branch so that the integration tests can run. Once those pass, I'll merge this into main

@mdonnalley mdonnalley changed the base branch from main to mdonnalley/1363 June 2, 2025 18:57
@mdonnalley mdonnalley merged commit 5b9abfa into oclif:mdonnalley/1363 Jun 2, 2025
1 check passed
mdonnalley added a commit that referenced this pull request Jun 2, 2025
* chore: migrate from globby to tinyglobby (#1363)

* chore: remove packageManager from package.json

---------

Co-authored-by: Shrey Sudhir <shrey.somaiya@gmail.com>
@spanishpear
Copy link
Contributor Author

Thank you!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants