Replace fs-extra writeJson with fs.writeFile
ProprietaryReplaces fs-extra's writeJson/writeJSON and their sync forms with writeFile/writeFileSync from node:fs/promises and node:fs, serializing with JSON.stringify(obj, replacer, spaces) + '\n' exactly as fs-extra does. Calls with a callback, non-literal options, or a non-default EOL are left in place.
org. openrewrite. node. migrate. fs-extra. replace-fs-extra-write-jsonmod run . --recipe= org. openrewrite. node. migrate. fs-extra. replace-fs-extra-write-jsonInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.