Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable generators by default (even in dependencies) #117

Merged
merged 1 commit into from
Apr 2, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions jscomp/bsb/bsb_parse_sources.ml
Original file line number Diff line number Diff line change
Expand Up @@ -223,12 +223,7 @@ let rec
if Set_string.mem cxt.ignored_dirs dir then Bsb_file_groups.empty
else
let cur_globbed_dirs = ref false in
let has_generators =
match cxt with
| {cut_generators = false; package_kind = Toplevel | Pinned_dependency _ } -> true
| {cut_generators = false; package_kind = Dependency _}
| {cut_generators = true ; _ } -> false
in
let has_generators = not cxt.cut_generators in
let scanned_generators = extract_generators input in
let sub_dirs_field = input.?(Bsb_build_schemas.subdirs) in
let base_name_array =
Expand Down