@@ -17,23 +17,26 @@ function getVersionPrefix() {
17
17
if ( cached !== undefined ) {
18
18
return cached ;
19
19
}
20
- var file = path . join ( __dirname , ".." , "ocaml" , "VERSION" ) ;
20
+
21
+ var file = path . join ( __dirname , ".." , "OCAML_VERSION" ) ;
21
22
if ( fs . existsSync ( file ) ) {
22
23
var version = fs . readFileSync ( file , "ascii" ) ;
23
24
cached = version . substr ( 0 , version . indexOf ( "+" ) ) ;
24
25
return cached ;
25
26
}
26
27
console . warn ( `cannot find '${ file } '` ) ;
27
28
28
- file = path . join ( __dirname , ".." , "OCAML_VERSION " ) ;
29
+ file = path . join ( __dirname , ".." , "ocaml" , "VERSION ") ;
29
30
if ( fs . existsSync ( file ) ) {
30
31
var version = fs . readFileSync ( file , "ascii" ) ;
31
32
cached = version . substr ( 0 , version . indexOf ( "+" ) ) ;
32
33
return cached ;
33
34
}
34
35
console . warn ( `cannot find '${ file } '` ) ;
35
36
36
- console . warn ( "You should create OCAML_VERSION or ocaml/VERSION file to specify OCaml version like '4.02.3+buckle-master'" ) ;
37
+ console . warn (
38
+ "You should create OCAML_VERSION or ocaml/VERSION file to specify OCaml version like '4.02.3+buckle-master'"
39
+ ) ;
37
40
console . warn ( `for example,
38
41
bucklescript>cat ocaml/VERSION
39
42
4.02.3+BS
0 commit comments