Upgrade transitive npm dependency

MSAL

Pins or upgrades a transitive npm dependency with an override at the workspace root, where its package manager reads it, and regenerates the lock file natively, without executing the package manager: npm's overrides, Bun's overrides or resolutions, Yarn's resolutions, and for pnpm pnpm-workspace.yaml or pnpm.overrides by the pnpm release the project names. An override the package manager cannot read is not written, and the reason is recorded. None is written for a package the lock does not resolve. Not safe to use as a precondition: consults the package registry over the network and publishes per-project state shared with other dependency recipes.

org.openrewrite.javascript.UpgradeTransitiveDependencyVersion

Required

The name of the transitive npm dependency to upgrade.

The version constraint to set on the override entry.

Optional

Optional dependency path (pnpm-style a>b>c or yarn-style a/b/c) to scope the override. When omitted, applies as a global override.

mod run . --recipe=org.openrewrite.javascript.UpgradeTransitiveDependencyVersion \ -P packageName=lodash \ -P newVersion='^5.0.0'

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.