Replace fs.truncate() with file descriptor to fs.ftruncate()
ProprietaryReplace deprecated fs.truncate(fd, ...) and fs.truncateSync(fd, ...) calls with fs.ftruncate(fd, ...) and fs.ftruncateSync(fd, ...) when the first argument is a file descriptor (number).
org. openrewrite. node. migrate. fs. replace-fs-truncate-fdmod run . --recipe= org. openrewrite. node. migrate. fs. replace-fs-truncate-fdInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.