Open shiv19 opened 1 year ago
For 8.6 we're likely going to remove the lockfiles from the default clean paths, and let users opt-in via their own configs... Which you can already do:
cli: {
additionalPathsToClean: ['yarn.lock']
}
/cc @edusperoni
Is your feature request related to a problem? Please describe.
When you run
ns clean
on a project that uses yarn as the package manager, the CLI still tries to remove apackage-lock.json
instead ofyarn.lock
Describe the solution you'd like
If the package manager of the project is yarn, then
ns clean
should attempt to removeyarn.lock
if it exists.Describe alternatives you've considered
As an alternative, the developer could be prompted if they wish to remove yarn.lock or package-lock.json.
Anything else?
No response
Please accept these terms