Increase Node.js engine version

MSAL

Raises the lower bound of the engines.node version range in package.json to the given Node.js major version, dropping support for the older, end-of-life ones (6.x → 8.x, >= 6 → >= 8). The original constraint style is kept where possible, and the version is never lowered.

org.openrewrite.javascript.migrate.node.IncreaseNodeEngineVersion

Required

The Node.js major version to allow, e.g. 10 or 16.

mod run . --recipe=org.openrewrite.javascript.migrate.node.IncreaseNodeEngineVersion \ -P version=16

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