-
Notifications
You must be signed in to change notification settings - Fork 28
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
Order of "dependencies" object keys is being randomized #45
Comments
I am seeing this as well, and it's generating a lot of churn in the file. Specifically, fresh installs (empty node_modules) of the configured project ends up with a lock file that lists the dependencies in a seemingly randomized order. |
It would be really awesome if this were addressed. I think the performance hit for either sorting or leaving the original sort order would be acceptable given how many teams are using this. |
Happening to us as well. Removing this dependency for our preinstall prevents this dep re-order in |
I'm using npm version 8.1.2, which uses
"lockfileVersion": 2
for the package-lock.json. I notice that when runningnpx npm-force-resolutions
, the dictionary underroot -> "packages" -> ""
in the package-lock.json now has keys in a random order instead of the alphabetical order it used to have. It would be better if the items are in the same, alphabetical order so that it's easier to compare diffs. In fact, when I look at the diff view, the entire file looks like it changed, since many things moved around.The text was updated successfully, but these errors were encountered: