-
Notifications
You must be signed in to change notification settings - Fork 29.8k
Replace del with rimraf package
#6411
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Is there a reason for this change? It's not any simpler, since it has to be promisified, and |
Actually it is simpler |
|
I agree |
|
@wtgtybhertgeghgtwtg we're going to drop recursive-copy or use only parts of it too, it does way more than we need too 💯 |
|
That seems reasonable. There is a chance that |
|
We can even drop the globbing, we don't use the globbing part, we just want to delete 1 directory in this case 😅 Same goes for recursive copy, we literally only want to |
|
Oh, wow, I should have noticed that. |
|
@wtgtybhertgeghgtwtg this is one of the reasons why I'm still not convinced moving to rimraf is even the correct thing to do, it could be even more performant to use fs.unlink directly in this case. But this is a good first step 👍 |
|
On a similar note we have the |
|
@wtgtybhertgeghgtwtg could you reach out to me on https://spectrum.chat/users/timneutkens / twitter.com/timneutkens? |
Replaces use of
delin favor ofrimrafpackage because it's smaller and less complexRemoves
packages/next/lib/promisify.jsin favor of native promisify because it's leftover Node 6 polyfill.Converts 2 files to TypeScript