commit | e78c1d6f8054b994be46fc879b731ac7b2af48fd | [log] [tgz] |
---|---|---|
author | Michael Thomsen <mit@google.com> | Mon Sep 13 14:18:50 2021 |
committer | GitHub <noreply@github.com> | Mon Sep 13 14:18:50 2021 |
tree | b4f31834f2c28a7dc74e3f75f32e78842f216005 | |
parent | fb736aa12316dd2d882b202a438a6946a4b4bea0 [diff] | |
parent | c3419f863f1553f2d48ab8251a3197a68e57ec00 [diff] |
Merge pull request #115 from dart-lang/cleanup Misc cleanup
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.