Skip to content

Commit 10a5d70

Browse files
committed
add project root to default config
1 parent a90ccc1 commit 10a5d70

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

compiler/gentype/GenTypeConfig.ml

+5-4
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,7 @@ let read_config ~get_config_file ~namespace =
239239
sources;
240240
}
241241
in
242+
let default_config = {default with project_root; bsb_project_root} in
242243
match get_config_file ~project_root with
243244
| Some bs_config_file -> (
244245
try
@@ -247,7 +248,7 @@ let read_config ~get_config_file ~namespace =
247248
| Obj {map = bsconf} -> (
248249
match bsconf |> get_opt "gentypeconfig" with
249250
| Some (Obj {map = gtconf}) -> parse_config ~bsconf ~gtconf
250-
| _ -> default)
251-
| _ -> default
252-
with _ -> default)
253-
| None -> default
251+
| _ -> default_config)
252+
| _ -> default_config
253+
with _ -> default_config)
254+
| None -> default_config

0 commit comments

Comments
 (0)