https://github.com/dart-lang/package_config
Support for working with Package Resolution Configuration files
https://github.com/dart-lang/package_config
Last synced: 6 months ago
JSON representation
Support for working with Package Resolution Configuration files
- Host: GitHub
- URL: https://github.com/dart-lang/package_config
- Owner: dart-lang
- License: bsd-3-clause
- Created: 2015-05-13T16:18:46.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2024-12-11T08:49:03.000Z (6 months ago)
- Last Synced: 2024-12-11T09:34:26.153Z (6 months ago)
- Language: Dart
- Homepage: https://pub.dev/packages/package_config
- Size: 315 KB
- Stars: 16
- Watchers: 39
- Forks: 17
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Authors: AUTHORS
Awesome Lists containing this project
README
> [!IMPORTANT]
> This repo has moved to https://github.com/dart-lang/tools/tree/main/pkgs/package_config[](https://github.com/dart-lang/package_config/actions?query=workflow%3A"Dart+CI"+branch%3Amaster)
[](https://pub.dev/packages/package_config)
[](https://pub.dev/packages/package_config/publisher)Support for working with **Package Configuration** files as described
in the Package Configuration v2 [design document](https://github.com/dart-lang/language/blob/master/accepted/2.8/language-versioning/package-config-file-v2.md).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.