DEV Community


Discussion on: Updating Dependencies While Keeping package.json and yarn.lock in Sync

talha131 profile image
Talha Mansoor

I see your point. In one my projects, the build started to fail after I upgraded all the packages at the same time. After a lot of head scratching, I upgrade the packages one by one. This fixed the build issue.

I am not sure what the reason was. But since then, I have become weary of upgrade all commands.

Thread Thread
thawkin3 profile image
Tyler Hawkins Author

For sure, I probably wouldn't just upgrade all the packages at once. That's why I like to use the interactive command, upgrade the patch and minor updates together, make sure the tests pass, and then handle the major upgrades one by one since those have the breaking changes that could go wrong.