Ignore build artifacts and tool directories in .flowconfig#5234
Open
captbaritone wants to merge 1 commit intofacebook:mainfrom
Open
Ignore build artifacts and tool directories in .flowconfig#5234captbaritone wants to merge 1 commit intofacebook:mainfrom
captbaritone wants to merge 1 commit intofacebook:mainfrom
Conversation
Flow was parsing ~36k files when only ~2.5k are actual project source. The biggest offenders: - .claude/worktrees/ (14k files) - Claude Code git worktrees - website/build/ and website/.docusaurus/ (~2.8k files) - docs build output This brings the parsed file count from ~36k down to ~19k (the remaining ~16k are root node_modules which must stay visible for haste module resolution of fbjs and standard resolution of graphql, @testing-library, etc).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
.claude/to Flow ignore list (Claude Code worktrees are full repo copies)website/build/andwebsite/.docusaurus/to Flow ignore list (docs build artifacts)These directories were being parsed by Flow unnecessarily, inflating the file count from ~2.5k actual project files to ~36k total.
.claude/worktrees/website/build/+website/.docusaurus/node_modules/Test plan
Before this change:
After:
Breakdown by directory (after):
No
.claude/,website/build/, orwebsite/.docusaurus/directories in the output.Verify no new Flow errors introduced:
(The 2 errors are pre-existing
cannot-resolve-nameforperformance— unrelated to this change.)