Replace fs-extra pathExists with fs.access/fs.existsSync
ProprietaryReplaces 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-existsmod run . --recipe= org. openrewrite. node. migrate. fs-extra. replace-fs-extra-path-existsInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.