1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-19 14:48:08 +02:00

Remove the rimraf dependency in favor of the built-in Node.js fs.rmSync

In Node.js 14.14.0 the `fs.rmSync` function was added that removes files
and directories. The `recursive` option is used to remove directories
and their contents, making it a drop-in replacement for the `rimraf`
dependency we use.

Given that PDF.js now requires Node.js 18+ we can be sure that this
option is available, so we can safely remove `rimraf` and reduce the
number of project dependencies.

Co-authored-by: Wojciech Maj <kontakt@wojtekmaj.pl>
This commit is contained in:
Tim van der Meij 2024-05-16 16:32:51 +02:00
parent 0603d1ac18
commit fad14321a8
No known key found for this signature in database
GPG key ID: 8C3FD2925A5F2762
3 changed files with 39 additions and 29 deletions

View file

@ -47,7 +47,6 @@
"postcss-nesting": "^12.1.4",
"prettier": "^3.2.5",
"puppeteer": "^22.8.1",
"rimraf": "^3.0.2",
"streamqueue": "^1.1.2",
"stylelint": "^16.5.0",
"stylelint-prettier": "^5.0.0",