Examples (5)
Create a tarball from the current package in the current directory
Create a tarball from a specific package folder
npm pack path/to/package_directoryRun a dry run to preview the tarball contents without creating it
npm pack --dry-runCreate a tarball without running lifecycle scripts
npm pack --ignore-scriptsSpecify a custom registry to fetch package metadata from
npm pack --registry https://registry.npmjs.org/made by @shridhargupta | data from tldr-pages