We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
lib
1 parent 870db32 commit 21bba83Copy full SHA for 21bba83
jscomp/bsb/bsb_parse_sources.ml
@@ -298,6 +298,9 @@ and parsing_single_source ({ package_kind; is_dev; cwd } as cxt)
298
let dir =
299
match map.?(Bsb_build_schemas.dir) with
300
| Some (Str { str }) ->
301
+ if str = Literals.library_file then
302
+ Bsb_exception.config_error x (Printf.sprintf "dir field should be different from `%s`" Literals.library_file)
303
+ else
304
Ext_path.simple_convert_node_path_to_os_path str
305
| Some x ->
306
Bsb_exception.config_error x "dir expected to be a string"
0 commit comments