Skip to content
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

Command to update dependencies using yarn/npm commands #2

Open
michaeldisaro opened this issue Jun 10, 2021 · 1 comment
Open

Command to update dependencies using yarn/npm commands #2

michaeldisaro opened this issue Jun 10, 2021 · 1 comment

Comments

@michaeldisaro
Copy link
Owner

This tool can traverse recursively your linked projects.

With this in mind we could use recursively a combination of:

  • yarn outdated
  • yarn add

The first command is helpful to map outdated dependencies and check which is the last minor backward compatible version.

With the second command we can update the package.json to that minor version and keep the ^ range.

By doing this, we can have a repo tree synced to latest minor version and avoid build inconsistencies.

The next output of the first command should evidence only the major releases that could potentially break retro compatibility.

@michaeldisaro
Copy link
Owner Author

Fix the ">" string comparison on versions because "2.5.6" > "2.5.10", and the dependency is not being upgraded.

We should make a split on "." and compare major, minor, patch directly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant