pnpm publish
Publica um pacote no registry do npm.
pnpm [-r] publish [<tarball|folder>] [--tag <tag>]
[--access <public|restricted>] [options]
When publishing a package inside a workspace, the LICENSE file from the root of the workspace is packed with the package (unless the package has a license of its own).
You may override some fields before publish, using the
publishConfig field in package.json.
You also can use the publishConfig.directory to customize the published subdirectory (usually using third party build tools).
When running this command recursively (pnpm -r publish), pnpm will publish all
the packages that have versions not yet published to the registry.
Opções
--recursive, -r
Publica todos os pacotes do workspace.
--json
Show information in JSON format.
--tag <tag>
Publica o pacote com a determinada tag. By default, pnpm publish updates
the latest tag.
Por exemplo:
# dentro do diretório do pacote foo
pnpm publish --tag next
# em um projeto onde você deseja usar a próxima versão de foo
pnpm add foo@next
--access <public|restricted>
Informa ao registro se o pacote publicado deve ser público ou restrito.