Preview what would be published without uploading.
Section: Package Metadata and Distribution
Preview publish contents
bash
bash
pnpm publish --dry-runExplanation
Preview what would be published without uploading.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Package Metadata and Distribution
Pack to destination directory
Write the generated tarball into a chosen directory.
Publish current package
Publish the current package to the configured registry.