[wp-trac] [WordPress Trac] #51749: Update engines in package.json to match new LTS
WordPress Trac
noreply at wordpress.org
Tue Nov 10 16:52:08 UTC 2020
#51749: Update engines in package.json to match new LTS
--------------------------+-----------------------------
Reporter: mkaz | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version:
Severity: normal | Keywords:
Focuses: javascript |
--------------------------+-----------------------------
The engine field in package.json specifies a specific version 12.16.0 and
6.14.0, this should probably be set to greater-than-or-equal-to and not
exact.
Since the .npmrc file does not specify that engine-strict=true, as it does
in the Gutenberg repository, this field is advisory only.
The advice in documentation is to using the current LTS version, this also
matches the .nvmrc file which is set to lts/*
So this ticket updates the package.json to >=14.15.0 and >=6.14.8 for node
and npm, respectively.
See engines documenation:
https://docs.npmjs.com/cli/v6/configuring-npm/package-json#engines
--
Ticket URL: <https://core.trac.wordpress.org/ticket/51749>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list