nativescript-cli
nativescript-cli copied to clipboard
ns clean - should remove yarn.lock if the package manager for the project is yarn
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 a package-lock.json
instead of yarn.lock
Describe the solution you'd like
If the package manager of the project is yarn, then ns clean
should attempt to remove yarn.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
- [X] I have searched the existing issues as well as StackOverflow and this has not been posted before
- [X] I agree to follow this project's Code of Conduct
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