[wp-trac] [WordPress Trac] #45149: Configure NPM to save exact versions

WordPress Trac noreply at wordpress.org
Tue Oct 23 06:59:33 UTC 2018


#45149: Configure NPM to save exact versions
------------------------------+--------------------
 Reporter:  netweb            |      Owner:  (none)
     Type:  defect (bug)      |     Status:  new
 Priority:  normal            |  Milestone:  5.0
Component:  Build/Test Tools  |    Version:
 Severity:  normal            |   Keywords:
  Focuses:                    |
------------------------------+--------------------
 In #43055 and [https://github.com/WordPress/gutenberg/pull/2512 #GB2512]
 an `.npmrc` file was added to `/trunk` to Gutenberg to save npm package
 versions as exact versions in the `package.json` file.

 This should also be performed for the 5.0 branch, this will ensure
 everyone is using the same p[ackage versions

 > Exact versions are ensured by configuring a project-level `.npmrc` with
 `save-exact = true`.
 >
 > Using exact versions helps avoid avoid and reduce debugging cost of bugs
 by guaranteeing that two installations of ~~Gutenberg~~ WordPress are
 running the same dependency versions. It is typically recommendable for
 applications, whereas a library may want to allow some flexibility in the
 dependencies it supports (assuming trust in SemVer).


 Note: ''Due to the complexity of the commits in #43055 I'm creating this
 ticket instead of reopening that ticket''

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


More information about the wp-trac mailing list