clearlydefined / crawler

A service that crawls projects and packages for information relevant to ClearlyDefined
MIT License
43 stars 30 forks source link

Remove rimraf #558

Open lumaxis opened 3 months ago

lumaxis commented 3 months ago

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.

qtomlinson commented 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?

lumaxis commented 3 months ago

@qtomlinson Nice! Much easier 🙂