Module has dependency
MSALSearches for Node.js packages that have an npm dependency matching the specified package name. Places a SearchResult marker on all sources within a package with a matching dependency. A source belongs to the package.json in its nearest enclosing directory, so each member of a workspace is its own module. This recipe is intended to be used as a precondition for other recipes. For example this could be used to limit the application of a migration to only packages that use a specific version of a library. If the search result you want is instead just the dependency entry in package.json, use the DependencyInsight recipe instead.
org. openrewrite. javascript. search. ModuleHasDependencyRequired
A glob pattern to match npm package names. Use * as a wildcard.
Optional
Match dependencies declared in the specified scope. All scopes are searched by default.
Match only dependencies whose installed version satisfies this npm semver range. When a dependency is not resolved from a lock file, the lowest version its constraint admits is used. All versions are searched by default.
If enabled, transitive dependencies will not be considered. All dependencies are searched by default.
mod run . --recipe= org. openrewrite. javascript. search. ModuleHasDependency \
-P packageNamePattern= '@angular/ *'Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.