mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
30 lines
665 B
Plaintext
30 lines
665 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# npm pack
|
|
|
|
> Create a tarball from a package.
|
|
> More information: <https://docs.npmjs.com/cli/pack/>.
|
|
|
|
- Create a tarball from the current package in the current directory:
|
|
|
|
`npm pack`
|
|
|
|
- Create a tarball from a specific package folder:
|
|
|
|
`npm pack {{path/to/package_directory}}`
|
|
|
|
- Run a dry run to preview the tarball contents without creating it:
|
|
|
|
`npm pack --dry-run`
|
|
|
|
- Create a tarball without running lifecycle scripts:
|
|
|
|
`npm pack --ignore-scripts`
|
|
|
|
- Specify a custom registry to fetch package metadata from:
|
|
|
|
`npm pack --registry {{https://registry.npmjs.org/}}`
|