npm-pack.1 986 B

12345678910111213141516171819202122232425262728293031323334353637
  1. .TH "NPM\-PACK" "1" "August 2021" "" ""
  2. .SH "NAME"
  3. \fBnpm-pack\fR \- Create a tarball from a package
  4. .SS Synopsis
  5. .P
  6. .RS 2
  7. .nf
  8. npm pack [[<@scope>/]<pkg>\.\.\.] [\-\-dry\-run]
  9. .fi
  10. .RE
  11. .SS Description
  12. .P
  13. For anything that's installable (that is, a package folder, tarball,
  14. tarball url, name@tag, name@version, name, or scoped name), this
  15. command will fetch it to the cache, and then copy the tarball to the
  16. current working directory as \fB<name>\-<version>\.tgz\fP, and then write
  17. the filenames out to stdout\.
  18. .P
  19. If the same package is specified multiple times, then the file will be
  20. overwritten the second time\.
  21. .P
  22. If no arguments are supplied, then npm packs the current package folder\.
  23. .P
  24. The \fB\-\-dry\-run\fP argument will do everything that pack usually does without
  25. actually packing anything\. Reports on what would have gone into the tarball\.
  26. .SS See Also
  27. .RS 0
  28. .IP \(bu 2
  29. npm help cache
  30. .IP \(bu 2
  31. npm help publish
  32. .IP \(bu 2
  33. npm help config
  34. .IP \(bu 2
  35. npm help npmrc
  36. .RE