Replace fs-extra pathExists with fs.access/fs.existsSync

Proprietary

Replaces fs-extra's pathExistsSync(path) with existsSync(path) from node:fs, which is what fs-extra exports under that name, and the promise form of pathExists(path) with access(path).then(() => true, () => false) from node:fs/promises, matching fs-extra's implementation. The callback form is left in place.

org.openrewrite.node.migrate.fs-extra.replace-fs-extra-path-exists
mod run . --recipe=org.openrewrite.node.migrate.fs-extra.replace-fs-extra-path-exists

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