Upgrade Node.js version in version files

MSAL

Raises the Node.js version in .nvmrc and .node-version files to the given major version. Majors (8, v8) and pinned versions (8.11.0) below it become the target major, keeping a v prefix, and LTS codenames (lts/carbon) become the target's codename. Floating aliases such as lts/* and node are left alone, and the version is never lowered.

org.openrewrite.javascript.migrate.node.UpgradeNodeVersionFiles

Required

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

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

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