tryParsePubspecOverrides function
Try parsing the pubspec_overrides.yaml
of the given directory.
If the parsing fails for any reason, returns null.
Implementation
Future<Map<String, Dependency>?> tryParsePubspecOverrides(
Directory directory,
) async {
try {
return await parsePubspecOverrides(directory);
} catch (_) {
return null;
}
}