bun pm pack (so workspace dependencies resolve to real version ranges), extracted into dist/publish, and published with npm publish. Versions already present on the registry are skipped, so the command is safe to re-run.
Publishing requires npm credentials saved with npm:credentials:create.
Usage
Examples
Publish every package and module in the workspace:Options
| Option | Description | Default |
|---|---|---|
--packages | Comma-separated package names to publish (under packages/). | All packages and modules |
--modules | Comma-separated module names to publish (under modules/). | All packages and modules |
--access | npm access level: public or restricted. | public |
--silent | Suppress log output and the publishing spinner. | false |
--packages nor --modules, every directory under packages/ and modules/ is treated as a target. A target whose package.json version already exists on the registry is reported as ignored rather than re-published. At the end the command prints a summary of how many targets were published versus ignored.