diff --git a/discoveryapis_generator/lib/src/apis_files_generator.dart b/discoveryapis_generator/lib/src/apis_files_generator.dart index 1363e649a..2ce4248f5 100644 --- a/discoveryapis_generator/lib/src/apis_files_generator.dart +++ b/discoveryapis_generator/lib/src/apis_files_generator.dart @@ -138,7 +138,7 @@ class ApisFilesGenerator { } } - const pubspecKeys = [ + const pubspecKeys = { 'name', 'version', 'description', @@ -152,7 +152,7 @@ class ApisFilesGenerator { 'dependency_overrides', 'executables', 'transformers' - ]; + }; // Process pubspec and either print the dependencies that has to be added // or if the updatePubspec flag is set add the required dependencies to the