@@ -237,7 +237,11 @@ let extract_js_post_build (map : json_map) cwd : string option =
237
237
238
238
(* * ATT: make sure such function is re-entrant.
239
239
With a given [cwd] it works anywhere*)
240
- let interpret_json ~(package_kind : Bsb_package_kind.t ) ~(per_proj_dir : string ) ~(warn_legacy_config : bool )
240
+ let interpret_json
241
+ ~(filename : string )
242
+ ~(json : Ext_json_types.t )
243
+ ~(package_kind : Bsb_package_kind.t )
244
+ ~(per_proj_dir : string )
241
245
: Bsb_config_types.t =
242
246
(* we should not resolve it too early,
243
247
since it is external configuration, no {!Bsb_build_util.convert_and_resolve_path}
@@ -253,10 +257,9 @@ let interpret_json ~(package_kind : Bsb_package_kind.t) ~(per_proj_dir : string)
253
257
1. if [build.ninja] does use [ninja] we need set a variable
254
258
2. we need store it so that we can call ninja correctly
255
259
*)
256
- match
257
- Bsb_config_load. load_json ~per_proj_dir ~warn_legacy_config
260
+ match json
258
261
with
259
- | filename , Obj { map } -> (
262
+ | Obj { map } -> (
260
263
let package_name, namespace = extract_package_name_and_namespace map in
261
264
let gentype_config = extract_gentype_config map in
262
265
@@ -353,7 +356,7 @@ let interpret_json ~(package_kind : Bsb_package_kind.t) ~(per_proj_dir : string)
353
356
}
354
357
| None ->
355
358
Bsb_exception. invalid_spec (" no sources specified in " ^ filename))
356
- | filename , _ -> Bsb_exception. invalid_spec (filename ^ " expect a json object {}" )
359
+ | _ -> Bsb_exception. invalid_spec (filename ^ " expect a json object {}" )
357
360
358
361
let deps_from_bsconfig () =
359
362
let cwd = Bsb_global_paths. cwd in
0 commit comments