[buddypress-trac] [BuddyPress Trac] #7535: Add npm `package-lock.json` for npm v5.x

buddypress-trac noreply at wordpress.org
Fri Jul 14 01:51:51 UTC 2017


#7535: Add npm `package-lock.json` for npm v5.x
------------------------------+-----------------------------
 Reporter:  netweb            |       Owner:  netweb
     Type:  task              |      Status:  accepted
 Priority:  normal            |   Milestone:  Future Release
Component:  Build/Test Tools  |     Version:
 Severity:  normal            |  Resolution:
 Keywords:                    |
------------------------------+-----------------------------

Comment (by netweb):

 I've nearly grok'd all there is know about npm 5...

 To that end some recent knowledge ingestion a `package-lock.json` and
 `npm-shrinkwrap.json` are interchangeable, in essence one could be renamed
 to other and it will work as intended.

 Another is that npm has no ''LTS'' releases, everyone should be running
 the latest version of npm, at the time of writing that is npm `5.2.0` see
 also http://blog.npmjs.org/post/162451604515/the-npm-clis-long-term-
 support-lts-policy

 The plan I have now to move forward with this is to rename `npm-
 shrinkwrap.json` to `package-lock.json`, then using npm `5.2.0` to update
 the file `package-lock.json` with the updated file format added as part of
 npm `5.1.0` release.

 This will also help to avoid scenarios where unexpected changes to `npm-
 shrinkwrap.json` occurs such as
 [https://buddypress.trac.wordpress.org/changeset/11642/trunk/npm-
 shrinkwrap.json this].

 I'm pretty keen on this change as it both benefits contributors and the
 repo, for contributors things become a little simpler in that `npm
 install` is for the most part the only command you'll ever need to run
 ever again, for the repo, this changes ensures a consistent set of build
 tool versions across all platforms that install faster than ever before.

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/7535#comment:4>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list