[tool] Include dev_dependencies in make-deps-path-based (#6146)

This commit is contained in:
stuartmorgan
2022-07-25 20:18:03 -04:00
committed by GitHub
parent f972cb1500
commit c8e2e07857
4 changed files with 55 additions and 5 deletions

View File

@ -154,8 +154,14 @@ class MakeDepsPathBasedCommand extends PluginCommand {
throw ToolExit(_exitCannotUpdatePubspec);
}
final Iterable<String> packagesToOverride = pubspec.dependencies.keys.where(
(String packageName) => localDependencies.containsKey(packageName));
final Iterable<String> combinedDependencies = <String>[
...pubspec.dependencies.keys,
...pubspec.devDependencies.keys,
];
final Iterable<String> packagesToOverride = combinedDependencies
.where(
(String packageName) => localDependencies.containsKey(packageName))
.toList();
if (packagesToOverride.isNotEmpty) {
final String commonBasePath = packagesDir.path;
// Find the relative path to the common base.