npm-shrinkwrap-json.5 1.2 KB

123456789101112131415161718192021222324252627282930313233343536
  1. .TH "NPM\-SHRINKWRAP\.JSON" "5" "September 2021" "" ""
  2. .SH "NAME"
  3. \fBnpm-shrinkwrap.json\fR \- A publishable lockfile
  4. .SS Description
  5. .P
  6. \fBnpm\-shrinkwrap\.json\fP is a file created by npm help \fBnpm
  7. shrinkwrap\fP\|\. It is identical to
  8. \fBpackage\-lock\.json\fP, with one major caveat: Unlike \fBpackage\-lock\.json\fP,
  9. \fBnpm\-shrinkwrap\.json\fP may be included when publishing a package\.
  10. .P
  11. The recommended use\-case for \fBnpm\-shrinkwrap\.json\fP is applications deployed
  12. through the publishing process on the registry: for example, daemons and
  13. command\-line tools intended as global installs or \fBdevDependencies\fP\|\. It's
  14. strongly discouraged for library authors to publish this file, since that
  15. would prevent end users from having control over transitive dependency
  16. updates\.
  17. .P
  18. If both \fBpackage\-lock\.json\fP and \fBnpm\-shrinkwrap\.json\fP are present in a
  19. package root, \fBnpm\-shrinkwrap\.json\fP will be preferred over the
  20. \fBpackage\-lock\.json\fP file\.
  21. .P
  22. For full details and description of the \fBnpm\-shrinkwrap\.json\fP file format,
  23. refer to the manual page for
  24. npm help package\-lock\.json\.
  25. .SS See also
  26. .RS 0
  27. .IP \(bu 2
  28. npm help shrinkwrap
  29. .IP \(bu 2
  30. npm help package\-lock\.json
  31. .IP \(bu 2
  32. npm help package\.json
  33. .IP \(bu 2
  34. npm help install
  35. .RE