@@ -45,7 +45,7 @@ let errorf x fmt =
4545
4646type cxt = {
4747 toplevel : bool ;
48- dir_index : bool ;
48+ dev_index : bool ;
4949 cwd : string ;
5050 root : string ;
5151 cut_generators : bool ;
@@ -339,18 +339,18 @@ let rec
339339 sources = sources;
340340 resources ;
341341 public ;
342- dir_index = cxt.dir_index ;
342+ dev_index = cxt.dev_index ;
343343 generators = if has_generators then scanned_generators else [] }
344344 ?globbed_dir:(
345345 if ! cur_globbed_dirs then Some dir else None )
346346 children
347347
348348
349- and parsing_single_source ({toplevel; dir_index ; cwd} as cxt ) (x : Ext_json_types.t )
349+ and parsing_single_source ({toplevel; dev_index ; cwd} as cxt ) (x : Ext_json_types.t )
350350 : t =
351351 match x with
352352 | Str { str = dir } ->
353- if not toplevel && dir_index then
353+ if not toplevel && dev_index then
354354 Bsb_file_groups. empty
355355 else
356356 parsing_source_dir_map
@@ -363,7 +363,7 @@ and parsing_single_source ({toplevel; dir_index ; cwd} as cxt ) (x : Ext_json_ty
363363 | Some (Str {str ="dev" } ) ->
364364 true
365365 | Some _ -> Bsb_exception. config_error x {| type field expect " dev" literal | }
366- | None -> dir_index in
366+ | None -> dev_index in
367367 if not toplevel && current_dir_index then
368368 Bsb_file_groups. empty
369369 else
@@ -379,7 +379,7 @@ and parsing_single_source ({toplevel; dir_index ; cwd} as cxt ) (x : Ext_json_ty
379379
380380 in
381381 parsing_source_dir_map
382- {cxt with dir_index = current_dir_index;
382+ {cxt with dev_index = current_dir_index;
383383 cwd= Ext_path. concat cwd dir} map
384384 | _ -> Bsb_file_groups. empty
385385and parsing_arr_sources cxt (file_groups : Ext_json_types.t array ) =
@@ -405,7 +405,7 @@ let scan
405405 parse_sources {
406406 ignored_dirs;
407407 toplevel;
408- dir_index = false ;
408+ dev_index = false ;
409409 cwd = Filename. current_dir_name;
410410 root ;
411411 cut_generators;
0 commit comments