docs: replace npm with yarn in lockfile readme (#25309)

PR Close #25309
This commit is contained in:
Daniel Ruf 2018-08-05 02:06:14 +02:00 committed by Kara Erickson
parent c1587029db
commit a9881bb18e
1 changed files with 2 additions and 2 deletions

View File

@ -1,8 +1,8 @@
All of our npm dependencies are locked via the `yarn.lock` file for the following reasons:
- our project has lots of dependencies which update at unpredictable times, so it's important that
we update them explicitly once in a while rather than implicitly when any of us runs npm install
- locked dependencies allow us to reuse npm cache on travis, significantly speeding up our builds
we update them explicitly once in a while rather than implicitly when any of us runs `yarn install`
- locked dependencies allow us to reuse yarn cache on travis, significantly speeding up our builds
(by 5 minutes or more)
- locked dependencies allow us to detect when node_modules folder is out of date after a branch switch
which allows us to build the project with the correct dependencies every time