| commit | b9841b74c1bbe69a0599d84f5562c426cd8ea87b | [log] [tgz] |
|---|---|---|
| author | Lasse R.H. Nielsen <[email protected]> | Wed Feb 07 20:49:05 2024 |
| committer | Lasse R.H. Nielsen <[email protected]> | Wed Feb 07 21:17:57 2024 |
| tree | 2105b49f92341243b82c60c6d8f21e159f8aca36 | |
| parent | 4a7042bb286cf0b41b26e87972bc28bda535f8b9 [diff] |
Recognize URIs starting with `dart-macro+`. Such URIs belong to the same package as the the rest of the URI would, but are not `package:` URIs, and do not have a corresponding `package:` URI. In this way, they behave like files inside the package, but outside of `lib/`, even if they are `dart-macro+package:` URIs.
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.