Find Node.js dependency
MSALFinds dependencies in a project's package.json. Can find both direct dependencies and dependencies that transitively include the target package. This recipe is commonly used as a precondition for other recipes.
org. openrewrite. javascript. dependencies. find-dependencyRequired
The name of the npm package to find. Supports glob patterns.
Optional
An exact version number or semver selector used to select the version number. Leave empty to match any version.
If true (default), only matches dependencies that directly match the package name. If false, also marks direct dependencies that have the target package as a transitive dependency.
mod run . --recipe= org. openrewrite. javascript. dependencies. find-dependency \
-P packageName= lodashInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.