config/config library
Functions
-
expandWorkspaceGlobs(
List? patterns, Directory root) → List< String> ? - Expands glob patterns from dpk.yaml workspace field into actual directory paths. Only includes directories that contain a pubspec.yaml file.
-
findDpkYamlDirectory(
Directory startDirectory) → Future< Directory?> -
loadConfig(
Directory directory) → Future< ConfigData> -
loadDpkYamlRaw(
Directory directory) → dynamic - Loads a dpk.yaml file from the given directory and returns it as a raw YAML object. Returns null if the file doesn't exist. The return type is dynamic because loadYaml returns YamlMap, which implements Map.
-
validatePackageDpkYaml(
Map yaml) → void - Validates that a workspace package's dpk.yaml doesn't contain forbidden fields. Throws a StateError if any forbidden fields are found.