"Fossies" - the Fresh Open Source Software Archive 
Member "angular-13.3.9/yarn.lock.readme.md" (18 May 2022, 1329 Bytes) of package /linux/www/angular-13.3.9.tar.gz:
As a special service "Fossies" has tried to format the requested source page into HTML format (assuming markdown format).
Alternatively you can here
view or
download the uninterpreted source code file.
A member file download can also be achieved by clicking within a package contents listing on the according byte size field. See also the last
Fossies "Diffs" side-by-side code changes report for "yarn.lock.readme.md":
13.3.6_vs_13.3.7.
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
yarn install
- locked dependencies allow us to reuse yarn cache on CircleCI,
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
Before changing a dependency, do the following:
- make sure you are in sync with
upstream/main
:
git fetch upstream && git rebase upstream/main
- ensure that your
node_modules
directory is not stale by
running yarn install
To add a new dependency do the following:
yarn add <packagename> --dev
To update an existing dependency do the following: run
yarn upgrade <packagename>@<version|latest> --dev
or yarn upgrade <packagename> --dev
to update to the
latest version that matches version constraint in
package.json
To Remove an existing dependency do the following: run
yarn remove <packagename>
Once you've changed the dependency, commit the changes to
package.json
& yarn.lock
, and you are
done.