Replace fs-extra remove with fs.rm
ProprietaryReplaces fs-extra's remove(path) and removeSync(path) with rm/rmSync from node:fs/promises and node:fs, passing { recursive: true, force: true } as fs-extra does internally. The callback form maps to the callback rm from node:fs.
org. openrewrite. node. migrate. fs-extra. replace-fs-extra-removemod run . --recipe= org. openrewrite. node. migrate. fs-extra. replace-fs-extra-removeInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.