commit | d2057d506b43c7011f149b4186dbd65142b93ede | [log] [tgz] |
---|---|---|
author | Lasse R.H. Nielsen <lrn@google.com> | Thu Jan 21 16:32:45 2021 +0100 |
committer | GitHub <noreply@github.com> | Thu Jan 21 16:32:45 2021 +0100 |
tree | 5082c1801a93ed936ff8a6e0ef0e86e9b52c4ba8 | |
parent | 0e208cb5a9482d780c47627368d3f5bdc409f37b [diff] |
Make it possible to control whether the `rootUri` path is relativized. (#102) * Make it possible to control whether the `rootUri` path is relativized. Adds `relativeRoot` boolean to `PackageConfig` which does nothing except to control whether the `root` URI is made relative to the configuration file when written to a configuration file. The parsers remember whether the root URI was relative originally. Also fixes bad cast.
Support for working with Package Configuration files as described in the Package Configuration v2 design document.
The primary libraries 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.