Remove redundant dependency overrides
ProprietaryRemoves overrides/resolutions from package.json that are redundant because the dependency tree already resolves to the overridden version (or higher) without the override. For each project, the recipe resolves the dependency closure with all overrides stripped and compares the resolved versions against the original override pins. Overrides matching or below the natural resolution are dropped along with any parallel //overrides, //resolutions, or //pnpm.overrides comment entries, and the lock file is regenerated.
org. openrewrite. nodejs. security. RemoveRedundantOverridesOptional
dryRunBoolean
If true, only report which overrides are redundant without removing them.
mod run . --recipe= org. openrewrite. nodejs. security. RemoveRedundantOverridesInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.