-
Notifications
You must be signed in to change notification settings - Fork 11
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
Fix error due to dependency on @npmcli/arborist #25 #26
Conversation
Actually, why is there a need of sorting the package.json? In my opinion, audit command should not change anything except versions of packages, especially when run with '--no-fix' parameter. |
@ultrr The original problem was that we did not touch the order of the dependencies but it just occurred that we removed new lines at the end of the To be honest, I don't want to add code that introduces some ordering etc. This would lead to more discussions on the long run for sure. Using dependencies performing certain tasks is one thing but if we add such code to the lib, we would have to maintain it, think about what should be done and what not etc. This would lead to effort which is not in scope of this lib in my opinion. Nevertheless, we have to get rid of the arborist dependency. |
@ultrr correct me if I'm wrong but I thought that |
Hi 👋 I finally found some time to finalize my work on that topic. Long story short: I removed arborist again. That solves the dependency error. In addition, I added some logic to consider basic formatting information of the input files, when writing audited files. That might not be perfect but it does not add so much code to maintain over time. |
tnobody/lerna-audit#26 has been resolved, so lerna-audit does not have a vulnerability anymore.
tnobody/lerna-audit#26 has been resolved, so lerna-audit does not have a vulnerability anymore.
tnobody/lerna-audit#26 has been resolved, so lerna-audit does not have a vulnerability anymore.
tnobody/lerna-audit#26 has been resolved, so lerna-audit does not have a vulnerability anymore.
tnobody/lerna-audit#26 has been resolved, so lerna-audit does not have a vulnerability anymore.
tnobody/lerna-audit#26 has been resolved, so lerna-audit does not have a vulnerability anymore.
tnobody/lerna-audit#26 has been resolved, so lerna-audit does not have a vulnerability anymore.
@npmcli/package-json
which is what latest version of arborist is using now, but that does not behave the same way as the old code, which does not alter the package.json sort order of the properties.