当你创建一个组织时,“开发者”团队会自动创建。默认情况下,开发者团队对组织范围内创建的所有新包具有读/写权限。

🌐 The "developers" team is automatically created when you create an organization. By default, the developers team has read/write access to all new packages created under the organization's scope.

  • 添加到组织的成员,包括组织所有者,会自动被添加到 开发者 团队
  • 在组织范围内新创建的任何包的 package.json 中,[maintainers 字段] 会自动填充当前 开发者 团队的成员

如果你在组织的范围内创建一个新包,并且不希望 developers 团队的成员对该包具有读/写权限,所有者或管理员可以移除 developers 团队对该包的访问权限。更多信息,请参见“管理团队对组织包的访问”。

🌐 If you create a new package under your organization's scope and you do not want members of the developers team to have read/write access to that package, an owner or admin can remove the developers team's access to that package. For more information, see "Managing team access to organization packages".

如果所有者向组织添加新成员,并且希望该成员加入开发者团队,所有者可以将其移除。

🌐 If an owner adds a new member to an organization and does not want that member to be on the developers team, an owner can remove them.

注意: 由于以下原因,开发者团队不能再从组织中移除:

  • 它是组织中所有用户、包和默认权限的真实来源。
  • 当你想要限制写入权限时,最好将默认权限设置为只读并创建单独的团队来管理写入权限。