File tree 2 files changed +7
-3
lines changed
2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ let diagnose = ref false
61
61
let get_diagnose () = ! diagnose
62
62
let set_diagnose b = diagnose := b
63
63
64
- let (// ) = Filename . concat
64
+ let (// ) = Filname . concat
65
65
66
66
(* let get_packages_info () = !packages_info *)
67
67
Original file line number Diff line number Diff line change @@ -155,9 +155,13 @@ function non_windows_npm_release() {
155
155
child_process . execSync ( make + " libs && " + make + " install" , root_dir_config )
156
156
} else {
157
157
tryToProvideOCamlCompiler ( )
158
- if ( process . env . BS_TRAVIS_CI ) {
158
+ if ( process . env . BS_TRAVIS_CI === "1" ) {
159
159
console . log ( 'Enforcing snapshot in CI mode' )
160
- child_process . execSync ( "make -C jscomp force-snapshotml" , root_dir_config )
160
+ if ( fs . existsSync ( path . join ( root_dir , 'jscomp' , 'Makefile' ) ) ) {
161
+ child_process . execSync ( "make -C jscomp force-snapshotml" , root_dir_config )
162
+ } else {
163
+ console . log ( "jscomp/Makefile is missing" )
164
+ }
161
165
}
162
166
child_process . execSync ( make + " world && " + make + " install" , root_dir_config )
163
167
}
You can’t perform that action at this time.
0 commit comments