← All recipes
Moderne licensed

Remove unused express-request-id dependency

Recipe IDorg.openrewrite.node.migrate.express-request-id.remove-unused-express-request-id-dependencyArtifact@openrewrite/recipes-nodejs

Removes 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-dependency

If the recipe isn’t available locally, install it with:

mod config recipes npm install @openrewrite/recipes-nodejs

Options

NameTypeDescription
accountForMigrationStringJudge 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.