You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

owner.md 1.5 kB

3 years ago
12345678910111213141516171819202122232425262728293031323334353637383940
  1. ---
  2. id: docs_cli_owner
  3. guide: docs_cli
  4. layout: guide
  5. ---
  6. <p class="lead">Manage package owners.</p>
  7. ### What is a package owner? <a class="toc" id="toc-what-is-a-package-owner" href="#toc-what-is-a-package-owner"></a>
  8. A package "owner" in the registry is a user that has access to make changes to
  9. a package. A single package can have as many owners as you want.
  10. Owners have permission to do the following tasks:
  11. 1. Publish new versions of the package
  12. 2. Add or remove other owners of the package
  13. 3. Change metadata for a package
  14. ### Caveats <a class="toc" id="toc-caveats" href="#toc-caveats"></a>
  15. There aren't any other levels of access at this time. All users can either
  16. modify a package or they cannot. In the future, there may be more types of
  17. roles, but not at this time.
  18. ### Commands <a class="toc" id="toc-commands" href="#toc-commands"></a>
  19. ##### `yarn owner list <package>` <a class="toc" id="toc-yarn-owner-ls" href="#toc-yarn-owner-ls"></a>
  20. Lists all of the owners of a `<package>`.
  21. ##### `yarn owner add <user> <package>` <a class="toc" id="toc-yarn-owner-add" href="#toc-yarn-owner-add"></a>
  22. Adds the `<user>` as an owner of the `<package>`. You must already be an owner
  23. of the `<package>` in order to run this command.
  24. ##### `yarn owner remove <user> <package>` <a class="toc" id="toc-yarn-owner-rm" href="#toc-yarn-owner-rm"></a>
  25. Removes the `<user>` as an owner of the `<package>`. You must already be an
  26. owner of the `<package>` in order to run this command.

js yarn包管理组件依赖分析

Contributors (1)