Javascript - (Shrinkwrap|lock) file

> (World Wide) Web - (W3|WWW) > Javascript (Js|ECMAScript) > Shipping/Building Pipeline

1 - About

Depending on your package manager, the shrinkwrap file may be called:

  • shrinkwrap.yaml,
  • npm-shrinkwrap.json,
  • package-lock.json,
  • or yarn.lock.

Some package managers use the term “lock file”, although it has nothing to do with file locking.

Every package manager creates a shrinkwrap file in each project folder.

This file should be committed to Git.

3 - Documentation / Reference