Closed orangejulius closed 4 years ago
Update, we can't quite merge this yet. We use the recursive remove functionality of fs-extra
, which can't be replicated in the Node.js 10 fs module
Seems the recursive flag was backported to 10 @orangejulius
That's for mkdir
. We need it for rmdir
.
Of course we could implement it ourselves, but it seems easiest to wait for Node.js 10 to be dropped. Node.js 14 should come out next month, so it won't be too long.
We generally only use the fs-extra package for its
mkdir -p
style convenience wrapper, which can now easily be done with the stockfs
module.This removes usage of the fs-extra module and replaces it with native alternatives.
Closes https://github.com/pelias/openaddresses/pull/458