-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Open
Labels
Description
Flow version: 0.297.0
Expected behavior
I saw in the release notes of 0.295.0 (https://github.com/facebook/flow/releases/tag/v0.295.0) that there is a new codemod convertLegacyUtilityTypes. However, I think the codemod was never published.
Actual behavior
➜ yarn run flow-codemod convertLegacyUtilityTypes
yarn run v1.22.22
$ node_modules/.bin/flow-codemod convertLegacyUtilityTypes
Found 2275 Flow files.
Error: Cannot find module 'node_modules/flow-upgrade/dist/codemods/convertLegacyUtilityTypes.js'
Require stack:
- node_modules/flow-upgrade/dist/bin/runSpecificCodemod.js
at Module._resolveFilename (node:internal/modules/cjs/loader:1212:15)
at Module._load (node:internal/modules/cjs/loader:1043:27)
at Module.require (node:internal/modules/cjs/loader:1298:19)
at require (node:internal/modules/helpers:182:18)
at node_modules/flow-upgrade/dist/bin/runSpecificCodemod.js:75:101
at async main (node_modules/flow-upgrade/dist/bin/runSpecificCodemod.js:75:9)
✨ Done in 0.94s.
To reproduce install flow-upgrade and run yarn run flow-codemod convertLegacyUtilityTypes
Thanks for your great work at flow ❤️