Skip to content

count all topics when updating a single package - #3057

Merged
Simek merged 2 commits into
react-native-community:mainfrom
jkasprzyk17:fix/single-package-topics
Nov 27, 2026
Merged

Simek merged 2 commits into
react-native-community:mainfrom
jkasprzyk17:fix/single-package-topics

Conversation

@jkasprzyk17

Copy link
Copy Markdown
Contributor

📝 Why & how

Split from #3051.

bun data:update <package> overwrote topics in the data file with the topics of that single package, because topicCounts is only built from the refreshed entries. Topics are now counted across all libraries in that mode, the same way the --missing-only mode already does (getTopicCounts).

✅ Checklist

  • Documented how you found or replicated the issue.
  • Explained how you fixed the issue or built the feature.
  • Described how to use or verify the change.

How to verify

Verified by reading only, because a full data run needs a GitHub token. With a token: run USE_LOCAL_DATA_FILE=1 bun data:update react-native-reanimated, then check that topics in assets/data.json still has the counts for all libraries, not only the topics of react-native-reanimated.

Comment thread scripts/build-and-score-data.ts Resolved

@Simek Simek left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Running build-and-score-data with wantedPackageName is mostly used for development/local debug, but it's welcome fix anyway, thanks! 👍

@Simek
Simek merged commit 5261f2c into react-native-community:main Nov 27, 2026
3 checks passed
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