Coerce process.exit() and process.exitCode to integer

Proprietary

Wraps non-integer values passed to process.exit() or assigned to process.exitCode with Math.trunc() to avoid the DEP0164 deprecation warning about implicit coercion to integer.

org.openrewrite.node.migrate.process.coerce-process-exit-code
mod run . --recipe=org.openrewrite.node.migrate.process.coerce-process-exit-code

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