Fixed a crash when root workspace has dependents#1400
Conversation
🦋 Changeset detectedLatest commit: 0d40470 The changes in this PR will be included in the next version bump. This PR includes changesets to release 6 packages
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 |
|
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. |
| } = { | ||
| [packages.root.packageJson.name]: { | ||
| pkg: packages.root, | ||
| dependents: [], | ||
| }, | ||
| }; |
There was a problem hiding this comment.
this mirrors what we already do in getDependencyGraph:
https://github.com/changesets/changesets/blob/main/packages/get-dependents-graph/src/get-dependency-graph.ts#L75-L77
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1400 +/- ##
=======================================
Coverage 81.02% 81.02%
=======================================
Files 54 54
Lines 2213 2213
Branches 659 659
=======================================
Hits 1793 1793
Misses 416 416
Partials 4 4 ☔ View full report in Codecov by Sentry. |
fixes #1397