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
(- noop style fix) Run relevant sections thru ocamlformat
These are the portions of the codebase changed in later commits to this branch. I've rebased any whitespace / formatting-only changes back into this commit, to produce a slightly-less-noisy diff.
{format = supported_format format loc ; in_source =false }
94
-
|Obj{map; loc} ->
95
-
beginmatchMap_string.find_exn map "module"with
96
-
|Str{str = format} ->
97
-
let in_source =
98
-
matchMap_string.find_opt map Bsb_build_schemas.in_source with
99
-
|Some (True _) -> true
100
-
|Some _
101
-
|None -> false
102
-
in
103
-
{format = supported_format format loc ; in_source }
87
+
|Str{ str = format; loc } ->
88
+
{ format = supported_format format loc; in_source =false }
89
+
|Obj{ map; loc } -> (
90
+
matchMap_string.find_exn map "module"with
91
+
|Str{ str = format } ->
92
+
let in_source =
93
+
matchMap_string.find_opt map Bsb_build_schemas.in_source with
94
+
|Some (True _) -> true
95
+
|Some_|None -> false
96
+
in
97
+
{ format = supported_format format loc; in_source }
104
98
|Arr_ ->
105
-
Bsb_exception.errorf ~loc
106
-
"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."
99
+
Bsb_exception.errorf ~loc
100
+
"package-specs: when the configuration is an object, `module` \
101
+
field should be a string, not an array. If you want to pass \
102
+
multiple module specs, try turning package-specs into an array of \
103
+
objects (or strings) instead."
107
104
|_ ->
108
-
Bsb_exception.errorf ~loc
109
-
"package-specs: the `module` field of the configuration object should be a string."
105
+
Bsb_exception.errorf ~loc
106
+
"package-specs: the `module` field of the configuration object \
107
+
should be a string."
110
108
|exception_ ->
111
-
Bsb_exception.errorf ~loc
112
-
"package-specs: when the configuration is an object, the `module` field is mandatory."
0 commit comments