#52455 closed enhancement (fixed)
Update the `package.json` `engines` to contain a version range
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 5.7 | Priority: | normal |
| Severity: | normal | Version: | |
| Component: | Build/Test Tools | Keywords: | |
| Focuses: | Cc: |
Description
The engines field in the package.json file specifies the desired versions of NodeJS and (optionally) NPM.
The build server uses the node version specified here to determine which version of NodeJS to use when building WordPress after a commit. Until recently, this did not support version ranges (see https://make.wordpress.org/systems/2021/01/27/core-build-sync-node-version-selection/).
Specifying a range can make it more obvious to contributors that any version of Node >= the latest LTS version (currently 14.x) can be used, and not just the one specific version that has been specified previously.
trunk should be updated to specifify node >=14.15.0 and npm >=6.14.8.
Change History (2)
Note: See
TracTickets for help on using
tickets.
In 50185: