next.js
17553c5e - chore: reduce `fs-extra` usage in `scripts/` (#56917)

Commit
2 years ago
chore: reduce `fs-extra` usage in `scripts/` (#56917) The PR follows #56536 and #56491, replacing `fs-extra` usages inside the `scripts/` folder. Note that the `copy` and `move` haven't been replaced yet. Currently, there is no better recursive copy (lightweight, promise-based, Node.js built-in `copyFile` API-based, support the `filter` option) library alternative available on npm, and Node.js built-in `fs.rename` doesn't support `overwrite`. The PR also replaces many async fs API usage with their sync versions. cc @wbinnssmith
Author
Parents
Loading