bun publish
Publish a package to the npm registry. More information: https://bun.com/docs/pm/cli/publish.
- Publish the current package to the npm registry:
bun publish
- Publish a package from a specific directory:
bun publish
- Publish a scoped package with specific access level:
bun publish --access
- Publish a package to a custom registry:
bun publish --registry
- Simulate what would be published without uploading:
bun publish --dry-run
- Publish a package with a specific distribution tag:
bun publish --tag
- Publish with a one-time password for 2FA-enabled accounts:
bun publish --otp
- Publish using a specific authentication type:
bun publish --auth-type
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
