Skip to content

Commit

Permalink
chore: eagerly load serializers when forcing generation for namespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
ElMassimo committed Jul 19, 2023
1 parent 1e9e4ec commit a438905
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,11 @@ def generate(force: ENV["SERIALIZER_TYPES_FORCE"])
@force_generation = force
config.output_dir.rmtree if force && config.output_dir.exist?

generate_index_file unless config.namespace
if config.namespace
load_serializers(all_serializer_files) if force
else
generate_index_file
end

loaded_serializers.each do |serializer|
generate_interface_for(serializer)
Expand Down

0 comments on commit a438905

Please sign in to comment.