File tree 3 files changed +7
-0
lines changed
3 files changed +7
-0
lines changed Original file line number Diff line number Diff line change 14
14
15
15
#### :bug : Bug Fix
16
16
- Fix implementation of directives https://github.com/rescript-lang/rescript-compiler/pull/6052
17
+ - Fix issue if the ` lib ` dir is included in the sources of bsconfig.json https://github.com/rescript-lang/rescript-compiler/pull/6055
17
18
18
19
#### :rocket : New Feature
19
20
- Add support for toplevel ` await ` https://github.com/rescript-lang/rescript-compiler/pull/6054
Original file line number Diff line number Diff line change @@ -298,6 +298,9 @@ and parsing_single_source ({ package_kind; is_dev; cwd } as cxt)
298
298
let dir =
299
299
match map.?(Bsb_build_schemas. dir) with
300
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
301
304
Ext_path. simple_convert_node_path_to_os_path str
302
305
| Some x ->
303
306
Bsb_exception. config_error x " dir expected to be a string"
Original file line number Diff line number Diff line change @@ -10333,6 +10333,9 @@ and parsing_single_source ({ package_kind; is_dev; cwd } as cxt)
10333
10333
let dir =
10334
10334
match map.?(Bsb_build_schemas.dir) with
10335
10335
| Some (Str { str }) ->
10336
+ if str = Literals.library_file then
10337
+ Bsb_exception.config_error x (Printf.sprintf "dir field should be different from `%s`" Literals.library_file)
10338
+ else
10336
10339
Ext_path.simple_convert_node_path_to_os_path str
10337
10340
| Some x ->
10338
10341
Bsb_exception.config_error x "dir expected to be a string"
You can’t perform that action at this time.
0 commit comments