You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bsb_exception.errorf ~loc:(Ext_json.loc_of x) "expect a string field"
109
112
|None -> suffix in
110
113
{format = supported_format format loc ; in_source ; suffix}
111
-
|Arr_ ->
112
-
Bsb_exception.errorf ~loc
113
-
"package-specs: when the configuration is an object, `module` field should be a string, not an array. If you want to pass multiple module specs, try turning package-specs into an array of objects (or strings) instead."
114
-
|_ ->
114
+
|Some_ ->
115
115
Bsb_exception.errorf ~loc
116
-
"package-specs: the `module` field of the configuration object should be a string."
117
-
|exception_ ->
116
+
"package-specs: when the configuration is an object, `module` field should be a string, not an array. If you want to pass multiple module specs, try turning package-specs into an array of objects (or strings) instead."
117
+
|None ->
118
118
Bsb_exception.errorf ~loc
119
119
"package-specs: when the configuration is an object, the `module` field is mandatory."
120
120
end
@@ -144,11 +144,12 @@ let package_flag ({format; in_source; suffix } : spec) dir =
Bsb_exception.errorf ~loc:(Ext_json.loc_of x) "expect a string field"
7237
7243
| None -> suffix in
7238
7244
{format = supported_format format loc ; in_source ; suffix}
7239
-
| Arr _ ->
7245
+
| Some _ ->
7240
7246
Bsb_exception.errorf ~loc
7241
-
"package-specs: when the configuration is an object, `module` field should be a string, not an array. If you want to pass multiple module specs, try turning package-specs into an array of objects (or strings) instead."
7242
-
| _ ->
7243
-
Bsb_exception.errorf ~loc
7244
-
"package-specs: the `module` field of the configuration object should be a string."
7245
-
| exception _ ->
7247
+
"package-specs: when the configuration is an object, `module` field should be a string, not an array. If you want to pass multiple module specs, try turning package-specs into an array of objects (or strings) instead."
7248
+
| None ->
7246
7249
Bsb_exception.errorf ~loc
7247
7250
"package-specs: when the configuration is an object, the `module` field is mandatory."
7248
7251
end
@@ -7272,11 +7275,12 @@ let package_flag ({format; in_source; suffix } : spec) dir =
7272
7275
(Ext_js_suffix.to_string suffix)
7273
7276
)
7274
7277
7278
+
(* FIXME: we should adapt it *)
7275
7279
let package_flag_of_package_specs (package_specs : t)
7276
-
(dirname : string ) : string =
7280
+
~(dirname : string ) : string =
7277
7281
Spec_set.fold (fun format acc ->
7278
7282
Ext_string.inter2 acc (package_flag format dirname )
7279
-
) package_specs Ext_string.empty
7283
+
) package_specs.modules Ext_string.empty
7280
7284
7281
7285
let default_package_specs suffix =
7282
7286
Spec_set.singleton
@@ -7289,7 +7293,7 @@ let default_package_specs suffix =
7289
7293
7290
7294
*)
7291
7295
let get_list_of_output_js
7292
-
(package_specs : Spec_set.t)
7296
+
(package_specs : t)
7293
7297
(output_file_sans_extension : string)
7294
7298
=
7295
7299
Spec_set.fold
@@ -7302,17 +7306,17 @@ let get_list_of_output_js
7302
7306
(if spec.in_source then Bsb_config.rev_lib_bs_prefix basename
0 commit comments