Skip to content

Commit

Permalink
Add js targets to @ALL when in explicit_js_mode
Browse files Browse the repository at this point in the history
  • Loading branch information
nojb committed Mar 19, 2019
1 parent 2e606f7 commit e11eb5a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/gen_rules.ml
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ module Gen(P : Install_rules.Params) = struct
| _ -> ());
Build_system.Alias.add_deps
~dyn_deps:(Build.paths_matching ~dir:ctx_dir ~loc:Loc.none (fun p ->
Dune_project.explicit_js_mode (Scope.project scope) ||
not (List.exists js_targets ~f:(Path.equal p))))
(Build_system.Alias.all ~dir:ctx_dir) Path.Set.empty;
cctxs
Expand Down

0 comments on commit e11eb5a

Please sign in to comment.