Skip to content

convertLegacyUtilityTypes codemod is missing #9356

@buschco

Description

@buschco

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 ❤️

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions