File tree Expand file tree Collapse file tree 2 files changed +5
-8
lines changed Expand file tree Collapse file tree 2 files changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -43,10 +43,7 @@ let bsPlatformLib ~config =
43
43
| ES6 -> config.platformLib ^ " /lib/es6"
44
44
| CommonJS -> config.platformLib ^ " /lib/js"
45
45
46
- let bsPlatformLibExtension = " .js"
47
-
48
- let getBsCurryPath ~config =
49
- bsPlatformLib ~config ^ " /curry" ^ bsPlatformLibExtension
46
+ let getBsCurryPath ~config = Filename. concat (bsPlatformLib ~config ) " curry.js"
50
47
51
48
type map = Ext_json_types .t Map_string .t
52
49
@@ -87,15 +84,15 @@ let setDebug ~gtconf =
87
84
| Some (Obj { map } ) -> Map_string. iter map Debug. setItem
88
85
| _ -> ()
89
86
90
- let bsconfig = " bsconfig.json"
87
+ let compilerConfigFile = " bsconfig.json"
91
88
92
89
let rec findProjectRoot ~dir =
93
- if Sys. file_exists (Filename. concat dir bsconfig ) then dir
90
+ if Sys. file_exists (Filename. concat dir compilerConfigFile ) then dir
94
91
else
95
92
let parent = dir |> Filename. dirname in
96
93
if parent = dir then (
97
94
prerr_endline
98
- (" Error: cannot find project root containing " ^ bsconfig ^ " ." );
95
+ (" Error: cannot find project root containing " ^ compilerConfigFile ^ " ." );
99
96
assert false )
100
97
else findProjectRoot ~dir: parent
101
98
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ let getCmtFile cmt =
57
57
cmtFile
58
58
59
59
let getBsConfigFile ~projectRoot =
60
- let bsconfig = concat projectRoot " bsconfig.json " in
60
+ let bsconfig = concat projectRoot compilerConfigFile in
61
61
match bsconfig |> Sys. file_exists with true -> Some bsconfig | false -> None
62
62
63
63
(* * Find the relative path from /.../bs/lib
You can’t perform that action at this time.
0 commit comments