Skip to content

Commit f0fa3c6

Browse files
committed
[bsb] default refmt-flags to ["--print", "binary"]
I didn't change refmt to "reason/refmt_impl.native" yet. Esy might be able to kill this implementation detail and put `refmt` into the environment correctly.
1 parent d4d779b commit f0fa3c6

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

jscomp/bin/bsb.ml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6945,13 +6945,12 @@ let set_ocamllex ~cwd s =
69456945
let get_ocamllex () = !ocamllex
69466946

69476947

6948-
69496948
let refmt = ref "refmt"
69506949
let get_refmt () = !refmt
69516950
let set_refmt ~cwd p =
69526951
refmt := resolve_bsb_magic_file ~cwd ~desc:"refmt" p
69536952

6954-
let refmt_flags = ref []
6953+
let refmt_flags = ref ["--print"; "binary"]
69556954
let get_refmt_flags () = !refmt_flags
69566955
let set_refmt_flags s =
69576956
refmt_flags := get_list_string s

jscomp/bsb/bsb_default.ml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,13 +116,12 @@ let set_ocamllex ~cwd s =
116116
let get_ocamllex () = !ocamllex
117117

118118

119-
120119
let refmt = ref "refmt"
121120
let get_refmt () = !refmt
122121
let set_refmt ~cwd p =
123122
refmt := resolve_bsb_magic_file ~cwd ~desc:"refmt" p
124123

125-
let refmt_flags = ref []
124+
let refmt_flags = ref ["--print"; "binary"]
126125
let get_refmt_flags () = !refmt_flags
127126
let set_refmt_flags s =
128127
refmt_flags := get_list_string s

0 commit comments

Comments
 (0)