Remove unused express-request-id dependency
Recipe ID
org.openrewrite.node.migrate.express-request-id.remove-unused-express-request-id-dependencyArtifact@openrewrite/recipes-nodejsRemoves express-request-id and @types/express-request-id from each package.json whose package no longer references it from any JavaScript or TypeScript source or tool configuration. uuid is kept, since the application may use it directly. Lock files are not regenerated; run the package manager's install afterwards.
Single recipeexpress-request-idProprietary
Usage
This recipe has no required configuration options. You’ll need the Moderne CLI configured before running the command below.
mod run . --recipe org.openrewrite.node.migrate.express-request-id.remove-unused-express-request-id-dependencyIf the recipe isn’t available locally, install it with:
mod config recipes npm install @openrewrite/recipes-nodejsOptions
| Name | Type | Description |
|---|---|---|
accountForMigration | String | Judge library usage as it will be once the migration recipes have run, so the dependency is dropped in the same run. Only enable alongside those recipes, as the composite migration does. |