commit | 094f5135d96cfbd2f14cf46c6baeb6999bc2821b | [log] [tgz] |
---|---|---|
author | Jens Johansen <jensj@google.com> | Thu Nov 25 11:35:57 2021 |
committer | Jens Johansen <jensj@google.com> | Thu Nov 25 11:35:57 2021 |
tree | 167f6648681355ddf09c980af4a1a450f8343e7f | |
parent | a22a37639160b568c90252ef5a45417a603a7d79 [diff] |
Feedback
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/pub.dartlang.org/foobar-1.1.0
). 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.