npm / npm-v7-blog

a repo to hold blog posts about npm v7 that'll end up on the npm blog
https://blog.npmjs.org/
14 stars 4 forks source link

[QUESTION] Sorting dependencies in package.json #3

Closed mjackson closed 3 years ago

mjackson commented 4 years ago

What / Why

I'm unsure if this is the right place to ask something like this, but I was just wondering if y'all had any plans to continue sorting the entries in package.json's dependencies (and devDependencies) in v7 after an npm add or npm remove. It was a handy side effect that I used to quickly scan my dependencies in the past, and I'm kinda missing it in v7.

Thanks for all the great work you do!

Where

Who

References

darcyclarke commented 3 years ago

Hey @mjackson! Apologize for the extremely delayed response here. We've actually opened up a feedback repo with Discussions turned on specifically for these types of questions/suggestions going forward. Since I'm actually planning to archive this repo, I thought I'd note that the sorting behavior you mention should indeed be supported right now in v7 (or at least afaict, testing v7.3.0); Not sure which release we patched that unfortunately.