Let wp-scripts packages-update
install packages for a specific version of WordPress.
#36005
+63
−8
Conversation
…ion of WordPress. This is to mitigate the problems related to DEWP usage mentioned in WordPress#35630. This allows a plugin developer to install to-be-extracted dependencies at the lowest version of their plugin targets. To be able to run local tests and linters against that version. To give some insight to the developer, on what is the lowest anticipated version of an individual package.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Description
This is to mitigate the problems related to DEWP usage mentioned in #35630.
This allows a plugin developer to install to-be-extracted dependencies at the lowest version of their plugin targets. To be able to run local tests and linters against that version. To give some insight to the developer, on what is the lowest anticipated version of an individual package.
How has this been tested?
git clone https://github.com/woocommerce/google-listings-and-ads.git && npm install
node_modules/@wordpress/scripts
with the content of this branchnpm run packages-update
/wp-scripts packages-update
, to see it still installs thelatest
by defaultnpm run packages-update -- --wpVersion=5.6
/wp-scripts packages-update--wpVersion=5.6
, to see it installs the versions from https://github.com/WordPress/wordpress-develop/blob/5.6/package.json#L79-L154Screenshots
Types of changes
New feature
Checklist:
*.native.js
files for terms that need renaming or removal).Additional notes:
The text was updated successfully, but these errors were encountered: