将 dart 库转移给 pub.dartlang.org 中的另一个所有者

Joh*_*ans 5 dart dart-pub

由于 pub 使用我的身份进行发布,我将如何将控制权转移给其他人,但仍允许他们将版本发布到同一个项目?也许这是微不足道的;我从来没有尝试过。

Ale*_*uin 5

您可以使用 pub uploader [options] {add/remove} <email>.

添加新上传者后,您可以删除自己。

pub uploader add <new-owner-email>
pub uploader remove <old-owner-email>
Run Code Online (Sandbox Code Playgroud)
$ pub uploader -h

Manage uploaders for a package on pub.dartlang.org.

Usage: pub uploader [options] {add/remove} <email>
-h, --help       Print usage information for this command.
    --server     The package server on which the package is hosted.
                 (defaults to "https://pub.dartlang.org")

    --package    The package whose uploaders will be modified.
                 (defaults to the current package)
Run Code Online (Sandbox Code Playgroud)