Skip to content

Commit 9a8a0e7

Browse files
committed
indent
1 parent d72bae0 commit 9a8a0e7

File tree

3 files changed

+51
-30
lines changed

3 files changed

+51
-30
lines changed

jscomp/main/bsb_main.ml

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -138,16 +138,23 @@ let install_target config_opt =
138138
let config =
139139
match config_opt with
140140
| None ->
141-
let config = Bsb_config_parse.interpret_json ~toplevel_package_specs:None ~per_proj_dir:Bsb_global_paths.cwd in
142-
let _ = Ext_list.iter config.file_groups.files (fun group ->
143-
let check_file = match group.public with
144-
| Export_all -> fun _ -> true
145-
| Export_none -> fun _ -> false
146-
| Export_set set ->
147-
fun module_name ->
148-
String_set.mem set module_name in
149-
String_map.iter group.sources (fun module_name module_info -> if check_file module_name then begin String_hash_set.add config.files_to_install module_info.name_sans_extension end)) in
150-
config
141+
let config =
142+
Bsb_config_parse.interpret_json
143+
~toplevel_package_specs:None
144+
~per_proj_dir:Bsb_global_paths.cwd in
145+
let _ = Ext_list.iter config.file_groups.files (fun group ->
146+
let check_file = match group.public with
147+
| Export_all -> fun _ -> true
148+
| Export_none -> fun _ -> false
149+
| Export_set set ->
150+
fun module_name ->
151+
String_set.mem set module_name in
152+
String_map.iter group.sources
153+
(fun module_name module_info ->
154+
if check_file module_name then
155+
begin String_hash_set.add config.files_to_install module_info.name_sans_extension end
156+
)) in
157+
config
151158
| Some config -> config in
152159
Bsb_world.install_targets Bsb_global_paths.cwd config
153160

lib/4.02.3/bsb.ml

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17009,16 +17009,23 @@ let install_target config_opt =
1700917009
let config =
1701017010
match config_opt with
1701117011
| None ->
17012-
let config = Bsb_config_parse.interpret_json ~toplevel_package_specs:None ~per_proj_dir:Bsb_global_paths.cwd in
17013-
let _ = Ext_list.iter config.file_groups.files (fun group ->
17014-
let check_file = match group.public with
17015-
| Export_all -> fun _ -> true
17016-
| Export_none -> fun _ -> false
17017-
| Export_set set ->
17018-
fun module_name ->
17019-
String_set.mem set module_name in
17020-
String_map.iter group.sources (fun module_name module_info -> if check_file module_name then begin String_hash_set.add config.files_to_install module_info.name_sans_extension end)) in
17021-
config
17012+
let config =
17013+
Bsb_config_parse.interpret_json
17014+
~toplevel_package_specs:None
17015+
~per_proj_dir:Bsb_global_paths.cwd in
17016+
let _ = Ext_list.iter config.file_groups.files (fun group ->
17017+
let check_file = match group.public with
17018+
| Export_all -> fun _ -> true
17019+
| Export_none -> fun _ -> false
17020+
| Export_set set ->
17021+
fun module_name ->
17022+
String_set.mem set module_name in
17023+
String_map.iter group.sources
17024+
(fun module_name module_info ->
17025+
if check_file module_name then
17026+
begin String_hash_set.add config.files_to_install module_info.name_sans_extension end
17027+
)) in
17028+
config
1702217029
| Some config -> config in
1702317030
Bsb_world.install_targets Bsb_global_paths.cwd config
1702417031

lib/4.02.3/unstable/bsb_native.ml

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17108,16 +17108,23 @@ let install_target config_opt =
1710817108
let config =
1710917109
match config_opt with
1711017110
| None ->
17111-
let config = Bsb_config_parse.interpret_json ~toplevel_package_specs:None ~per_proj_dir:Bsb_global_paths.cwd in
17112-
let _ = Ext_list.iter config.file_groups.files (fun group ->
17113-
let check_file = match group.public with
17114-
| Export_all -> fun _ -> true
17115-
| Export_none -> fun _ -> false
17116-
| Export_set set ->
17117-
fun module_name ->
17118-
String_set.mem set module_name in
17119-
String_map.iter group.sources (fun module_name module_info -> if check_file module_name then begin String_hash_set.add config.files_to_install module_info.name_sans_extension end)) in
17120-
config
17111+
let config =
17112+
Bsb_config_parse.interpret_json
17113+
~toplevel_package_specs:None
17114+
~per_proj_dir:Bsb_global_paths.cwd in
17115+
let _ = Ext_list.iter config.file_groups.files (fun group ->
17116+
let check_file = match group.public with
17117+
| Export_all -> fun _ -> true
17118+
| Export_none -> fun _ -> false
17119+
| Export_set set ->
17120+
fun module_name ->
17121+
String_set.mem set module_name in
17122+
String_map.iter group.sources
17123+
(fun module_name module_info ->
17124+
if check_file module_name then
17125+
begin String_hash_set.add config.files_to_install module_info.name_sans_extension end
17126+
)) in
17127+
config
1712117128
| Some config -> config in
1712217129
Bsb_world.install_targets Bsb_global_paths.cwd config
1712317130

0 commit comments

Comments
 (0)