Skip to content

Update @manypkg/get-packages to v3#1655

Open
bluwy wants to merge 5 commits intonextfrom
update-get-packages
Open

Update @manypkg/get-packages to v3#1655
bluwy wants to merge 5 commits intonextfrom
update-get-packages

Conversation

@bluwy
Copy link
Contributor

@bluwy bluwy commented May 1, 2025

Some code added to handle the breaking change, mainly the Package now needs to specify dir and relativeDir. And the tool needs to be a tool from @manypkg/tools and not just a string.

There are a lot of line changes adding package-lock.json to the fixtures because that's the only way for it to detect as monorepo (npm). Previously a "workspaces" only field was sufficient. @Andarist I'm not sure this is the most ergonomic, shouldn't npm monorepos be detected as fallback without the need for package-lock.json to exist?


Unrelated but if I may give feedback on the new breaking APIs, I'm not a big fan of passing the tool object entirely from @manypkg/tools. It should've supported a simple string like before and a union of Tool object instead.

Also, I'm not entirely clear for Packages type, why the returned rootPackage could be undefined while rootDir is not? rootPackage shouldn't be possible to be undefined from what I can tell (at least for default tools).

Also, I'm not sure if it was necessarily to introduce both dir (absolute) and relativeDir (relative) in the object. Feels redundant.

@bluwy bluwy mentioned this pull request May 1, 2025
@changeset-bot
Copy link

changeset-bot bot commented May 2, 2025

🦋 Changeset detected

Latest commit: 15cc07a

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

This PR includes changesets to release 10 packages
Name Type
@changesets/assemble-release-plan Major
@changesets/get-dependents-graph Major
@changesets/apply-release-plan Major
@changesets/get-release-plan Major
@changesets/release-utils Major
@changesets/config Major
@changesets/cli Major
@changesets/git Major
@changesets/pre Major
@changesets/read 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

@codecov
Copy link

codecov bot commented May 2, 2025

Codecov Report

Attention: Patch coverage is 92.10526% with 3 lines in your changes missing coverage. Please review.

Project coverage is 80.08%. Comparing base (268a29f) to head (15cc07a).

Files with missing lines Patch % Lines
packages/get-dependents-graph/src/index.ts 81.81% 2 Missing ⚠️
packages/cli/src/commands/publish/index.ts 50.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             next    #1655      +/-   ##
==========================================
+ Coverage   80.05%   80.08%   +0.03%     
==========================================
  Files          65       65              
  Lines        4998     5016      +18     
  Branches      948      949       +1     
==========================================
+ Hits         4001     4017      +16     
- Misses        992      994       +2     
  Partials        5        5              

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@bluwy
Copy link
Contributor Author

bluwy commented Nov 18, 2025

TODO: Update this once main cuts a release, which then I'll update the next branch with main changes. And then later port over some changes from #1609 and #1069 which attempted to upgrade to v2 in main

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.

1 participant