Skip to content

Commit 2e98138

Browse files
committed
tweak
1 parent 6f4e5e1 commit 2e98138

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

jscomp/common/js_config.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,4 +109,4 @@ let refmt = ref None
109109

110110
let is_reason = ref false
111111

112-
let no_js_stdout = ref false
112+
let js_stdout = ref true

jscomp/common/js_config.mli

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,4 +103,4 @@ val jsx_version : int ref
103103
val refmt : string option ref
104104
val is_reason : bool ref
105105

106-
val no_js_stdout : bool ref
106+
val js_stdout : bool ref

jscomp/core/lam_compile_main.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ let lambda_as_module
301301
(if !Js_config.bs_suffix then Literals.suffix_bs_js else Literals.suffix_js)
302302
in
303303
let package_info = Js_packages_state.get_packages_info () in
304-
if Js_packages_info.is_empty package_info && not !Js_config.no_js_stdout then
304+
if Js_packages_info.is_empty package_info && !Js_config.js_stdout then
305305
Js_dump_program.dump_deps_program ~output_prefix NodeJS lambda_output stdout
306306
else
307307
Js_packages_info.iter package_info (fun {module_system; path = _path} ->

jscomp/main/js_main.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -330,9 +330,9 @@ let buckle_script_flags : (string * Arg.spec * string) list =
330330
)
331331

332332
:: Ocaml_options.mk_impl
333-
(fun file -> Js_config.no_js_stdout := true; impl file )
333+
(fun file -> Js_config.js_stdout := false; impl file )
334334
:: Ocaml_options.mk_intf
335-
(fun file -> Js_config.no_js_stdout := true ; intf file)
335+
(fun file -> Js_config.js_stdout := false ; intf file)
336336
:: Ocaml_options.mk__ anonymous
337337
:: Ocaml_options.ocaml_options
338338

0 commit comments

Comments
 (0)