@@ -139,11 +139,22 @@ def prepare_croissant_builder(args: CmdArgs) -> None:
139
139
mapping = args .mapping_json ,
140
140
overwrite_version = args .overwrite_version ,
141
141
)
142
- cli_utils .download_and_prepare (
143
- builder = builder ,
144
- download_config = None ,
145
- download_dir = args .download_dir ,
146
- publish_dir = args .publish_dir ,
147
- skip_if_published = args .skip_if_published ,
148
- overwrite = args .overwrite ,
149
- )
142
+
143
+ # Generate each config sequentially.
144
+ for config in builder .BUILDER_CONFIGS :
145
+ builder_for_config = croissant_builder .CroissantBuilder (
146
+ jsonld = args .jsonld ,
147
+ record_set_ids = [config .name ],
148
+ file_format = args .file_format ,
149
+ data_dir = args .data_dir ,
150
+ mapping = args .mapping_json ,
151
+ overwrite_version = args .overwrite_version ,
152
+ )
153
+ cli_utils .download_and_prepare (
154
+ builder = builder_for_config ,
155
+ download_config = None ,
156
+ download_dir = args .download_dir ,
157
+ publish_dir = args .publish_dir ,
158
+ skip_if_published = args .skip_if_published ,
159
+ overwrite = args .overwrite ,
160
+ )
0 commit comments