Open lumaxis opened 3 months ago
Since node v14.14.0, there is fsPromises.rm. "To get a behavior similar to the rm -rf Unix command, use fsPromises.rm() with options { recursive: true, force: true }." Might be better in terms of future maintenance?
@qtomlinson Nice! Much easier 🙂
Updating
rimraf
to the latest version requires a small code change due to the change in how the library handles its exports (there is no default export anymore), plus it now supports Promises natively by default, hence we don't need to manually resolve and reject anymore.