[wp-trac] [WordPress Trac] #52455: Update the `package.json` `engines` to contain a version range

WordPress Trac noreply at wordpress.org
Fri Feb 5 02:34:06 UTC 2021


#52455: Update the `package.json` `engines` to contain a version range
------------------------------+----------------------
 Reporter:  desrosj           |      Owner:  desrosj
     Type:  enhancement       |     Status:  assigned
 Priority:  normal            |  Milestone:  5.7
Component:  Build/Test Tools  |    Version:
 Severity:  normal            |   Keywords:
  Focuses:                    |
------------------------------+----------------------
 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`.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/52455>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list