Regenerate npm lock files
MSALRegenerate the lock file of each package.json whose dependencies or engines an earlier recipe changed without regenerating it, natively and without executing the package manager. A package.json counts as changed when its dependency maps or engines differ from those its NodeResolutionResult marker records. Run it after recipes that edit package.json directly. A lock that cannot be regenerated is left as it is, with a warning and a row in the lock regeneration failures table. 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. RegenerateLockFilesmod run . --recipe= org. openrewrite. javascript. RegenerateLockFilesInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.