Skip to content

Remove rimraf#558

Merged
elrayle merged 3 commits intoclearlydefined:masterfrom
lumaxis:update-rimraf
May 24, 2024
Merged

Remove rimraf#558
elrayle merged 3 commits intoclearlydefined:masterfrom
lumaxis:update-rimraf

Conversation

@lumaxis
Copy link
Copy Markdown
Contributor

@lumaxis lumaxis commented Feb 15, 2024

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
Copy link
Copy Markdown
Collaborator

qtomlinson commented Feb 16, 2024

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 lumaxis changed the title Update rimraf to latest version Remove rimraf Feb 16, 2024
@lumaxis
Copy link
Copy Markdown
Contributor Author

lumaxis commented Feb 16, 2024

@qtomlinson Nice! Much easier 🙂

@elrayle elrayle merged commit 6d0bff9 into clearlydefined:master May 24, 2024
@lumaxis lumaxis deleted the update-rimraf branch May 27, 2024 14:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants