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

Upgrade npm packages to their latest versions #671

Closed
htdat opened this issue Jun 15, 2021 · 0 comments
Closed

Upgrade npm packages to their latest versions #671

htdat opened this issue Jun 15, 2021 · 0 comments
Labels
Dependencies Pull requests that update a dependency file

Comments

@htdat
Copy link
Member

htdat commented Jun 15, 2021

From this comment #659 (comment)

Reasoning

We tried a recent round of updating npm packages in #645

However, #645 was only to update package versions that satisfy what is mentioned in package.json. That is, ^4.0.2 means npm update will only look for versions between 4.0.2 and any newer version with this format 4.x.x.

Some of packages become out-of-date very soon, for example, @wordpress/scripts(code ref) is using ^7.2.0 while its latest version is 16.1.2 (npmjs link).

@nielslange somewhat mentioned this here #645 (review)

How to do

npm does not support this by default. Instead, we need to use another package to do that.
I tried this guide https://flaviocopes.com/update-npm-dependencies/

Here is the PR and its tests (I used my repo to avoid dumping so many GitHub Actions to our main repo here):

@htdat htdat added the Dependencies Pull requests that update a dependency file label Jun 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Dependencies Pull requests that update a dependency file
Projects
None yet
Development

No branches or pull requests

2 participants