-
Notifications
You must be signed in to change notification settings - Fork 623
[rush] [discussion] How to update dependency versions? #1720
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
Comments
I also would be interested on some tool listing all outdated dependencies. |
We use https://yarnpkg.com/package/npm-check-updates, wrapped in a script to iterate over all directories with a package.json |
Something like the following will do the job: #!/usr/bin/env bash
packages=$(rush list -p --json | jq -r '. | .projects[] | .name + " " + .path + "/"')
echo "${packages}" | awk '{print $2 "package.json"}' | xargs -n 1 -x ncu "${@}" --packageFile But I agree it would be good to have it integrated into |
Anyone know if things have changed over the last 2 years? I'm also looking for the right command to |
The docs only say
But that isn't too clear. Do we just run
rush update
after this, and all is taken care of?At the moment I can not run
rush update
with guarantee of success, so I runrush purge
, delete other filesrush purge
doesn't delete, and then finally runrush update
.But if I didn't have to do all that, I'm wondering if
rush update
should be enough after manual update of package.json. Even if it is that simple, it'll be worth adding to the docs.The text was updated successfully, but these errors were encountered: