yarn publish

yarn publish

Publishes a package to the npm registry.

Once a package is published, you can never modify that specific version, so take care before publishing.

yarn publish

Publishes the package defined by the package.json in the current directory.

yarn publish [tarball]

Publishes the package defined by a .tgz gzipped tarball.

yarn publish [folder]

Publishes the package contained in the specified folder. <folder>/package.json should specify the package details.

yarn publish --tag <tag>

Provided a tag to yarn publish lets you publish packages with a specific tag. For example, if you do a yarn publish --tag beta, and your package is named blorp, then someone else can install that package with yarn add blorp@beta.

yarn publish --access <public|restricted>

The --access flag controls whether the npm registry publishes this package as a public package, or restricted.

© 2016–2017 Yarn Contributors
Licensed under the BSD License.
https://yarnpkg.com/en/docs/cli/publish

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部