Merge pull request #124 from dart-lang/prep_2.0.3

prep for publishing 2.0.3
tree: f9dabe9c166b949c0ca530a3b305cae6e03a920c
  1. .github/
  2. example/
  3. lib/
  4. test/
  5. .gitignore
  6. analysis_options.yaml
  11. pubspec.yaml

Build Status pub package package publisher

Support for working with Package Configuration files as described in the Package Configuration v2 design document.

A Dart package configuration file is used to resolve Dart package names (e.g. foobar) to Dart files containing the source code for that package (e.g. file:///Users/myuser/.pub-cache/hosted/ The standard package configuration file is .dart_tool/package_config.json, and is written by the Dart tool when the command dart pub get is run.

The primary libraries of this package are

  • package_config.dart: Defines the PackageConfig class and other types needed to use package configurations, and provides functions to find, read and write package configuration files.

  • package_config_types.dart: Just the PackageConfig class and other types needed to use package configurations. This library does not depend on dart:io.

The package includes deprecated backwards compatible functionality to work with the .packages file. This functionality will not be maintained, and will be removed in a future version of this package.