Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Transferring a dart library to another owner in pub.dartlang.org

Tags:

dart

dart-pub

Since pub uses my identity for the publish, how would I go about transferring control to someone else, yet still allow them to publish releases to the same project? Maybe this is trivial; I've never tried it.

like image 860
John Evans Avatar asked Dec 26 '13 14:12

John Evans


People also ask

How do I import Dart library?

To import libraries found in packages, use the package: prefix: import 'package:js/js. dart' as js; import 'package:intl/intl.

What is pub package manager?

The pub package manager has a command-line interface that works with either the flutter tool or the dart tool. With either tool, add the pub command followed by a subcommand such as get : $ dart pub get # Gets dependencies for a non-Flutter package $ flutter pub get # Gets dependencies for a Flutter package.

What are the minimal requirements needed for a library in Dart?

The minimal requirements for a library are: pubspec file. The pubspec. yaml file for a library is the same as for an application package—there is no special designation to indicate that the package is a library.

What is a Dart library?

A library in a programming language represents a collection of routines (set of programming instructions). Dart has a set of built-in libraries that are useful to store routines that are frequently used. A Dart library comprises of a set of classes, constants, functions, typedefs, properties, and exceptions.


1 Answers

You can use pub uploader [options] {add/remove} <email>.

Once the new uploader added, you can remove yourself.

pub uploader add <new-owner-email>
pub uploader remove <old-owner-email>

$ 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)
like image 181
Alexandre Ardhuin Avatar answered Oct 02 '22 21:10

Alexandre Ardhuin