본문으로 건너뛰기
버전: Next

pnpm pack

패키지에서 tarball을 만듭니다.

옵션

--recursive, -r

Added in: v10.11.0

Pack all packages from the workspace.

--out <path>

Customizes the output path for the tarball. Use %s and %v to include the package name and version, e.g., %s.tgz or some-dir/%s-%v.tgz. By default, the tarball is saved in the current working directory with the name <package-name>-<version>.tgz.

--pack-destination <dir>

pnpm pack 이 tarball을 저장할 디렉토리입니다. 기본값은 현재 작업 디렉토리입니다.

--pack-gzip-level <level>

Specifying custom compression level.

--json

JSON 형식으로 로그를 출력합니다.

--filter <package_selector>

Added in: v10.11.0

필터링에 대해 자세히 알아보세요.

라이프사이클 스크립트

  • prepack
  • prepare
  • postpack