Skip to content

Flow codemod preparation#8262

Merged
4ian merged 1 commit intomasterfrom
cursor/flow-codemod-preparation-ad7d
Feb 12, 2026
Merged

Flow codemod preparation#8262
4ian merged 1 commit intomasterfrom
cursor/flow-codemod-preparation-ad7d

Conversation

@4ian
Copy link
Owner

@4ian 4ian commented Feb 12, 2026

Introduce Flow codemod infrastructure files and update fix-flow-errors.sh to manage Flow version, encapsulating the codemod script.

This PR cherry-picks only the necessary files for the Flow type migration codemod from a larger migration branch. It includes Flow library definitions, codemod scripts, and a .vscode setting. Crucially, fix-flow-errors.sh is updated to automatically upgrade flow-bin to 0.299.0 and run npm install, making the codemod setup self-contained. All actual type migration changes in newIDE/app/src and other core configuration files are explicitly excluded, as they will be handled in a separate branch.


Open in Cursor Open in Web

Cherry-pick from cursor/flow-type-migration-a5c4 only the codemod
infrastructure files, without any source code changes:

- .vscode/settings.json: Flow extension configuration
- newIDE/app/flow-libs/: Flow library definitions for DOM, BOM, etc.
- newIDE/app/scripts/: Codemod scripts (fix-flow-errors.sh and helpers)

Update fix-flow-errors.sh to self-update flow-bin version in
newIDE/app/package.json from 0.131.0 to 0.299.0 and run npm install,
making the codemod script fully encapsulated.

Co-authored-by: Florian Rival <4ian@users.noreply.github.com>
@cursor
Copy link

cursor bot commented Feb 12, 2026

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

@4ian 4ian merged commit e1ab2da into master Feb 12, 2026
4 of 6 checks passed
@4ian 4ian deleted the cursor/flow-codemod-preparation-ad7d branch February 12, 2026 16:26
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