Skip to content

Commit

Permalink
refactor: replace rimraf with rm
Browse files Browse the repository at this point in the history
We should check if this regresses anything on Windows before merging.
  • Loading branch information
lishaduck committed Nov 3, 2024
1 parent 39b4f53 commit f4cb1ea
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 26 deletions.
3 changes: 1 addition & 2 deletions lib/fs-wrapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
*/
const fs = require('graceful-fs');
const fsp = fs.promises;
const {rimraf} = require('rimraf');

/**
* Read a JSON file.
Expand Down Expand Up @@ -90,7 +89,7 @@ module.exports = {

readdir: fsp.readdir,

remove: rimraf,
remove: fsp.rm,

stat: fsp.stat
};
23 changes: 0 additions & 23 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@
"ora": "^5.4.0",
"path-key": "^3.1.1",
"prompts": "^2.2.1",
"rimraf": "^5.0.0",
"strip-ansi": "^6.0.0",
"terminal-link": "^2.1.1",
"tinyglobby": "^0.2.10",
Expand Down

0 comments on commit f4cb1ea

Please sign in to comment.