File tree 1 file changed +24
-11
lines changed 1 file changed +24
-11
lines changed Original file line number Diff line number Diff line change @@ -27,15 +27,28 @@ try {
27
27
throw new Error ( `Platform ${ target } is not supported!` ) ;
28
28
}
29
29
30
+ let binPaths = mod . binPaths ;
31
+ try {
32
+ binPaths = {
33
+ bsb_helper_exe : fs . realpathSync ( binPaths . bsb_helper_exe ) ,
34
+ bsc_exe : fs . realpathSync ( binPath . bsc_exe ) ,
35
+ ninja_exe : fs . realpathSync ( binPath . ninja_exe ) ,
36
+ rescript_editor_analysis_exe : fs . realpathSync ( rescript_editor_analysis_exe ) ,
37
+ rescript_tools_exe : fs . realpathSync ( rescript_tools_exe ) ,
38
+ rescript_exe : fs . realpathSync ( rescript_exe ) ,
39
+ rewatch_exe : fs . realpathSync ( rewatch_exe ) ,
40
+ }
41
+ } catch ( err ) {
42
+ console . warn ( "Cannot populate the realpath of a binary, some tests may fails" , err ) ;
43
+ }
44
+
45
+ export const platformDir = mod . binDir ;
30
46
export const {
31
- binDir : platformDir ,
32
- binPaths : {
33
- bsb_helper_exe,
34
- bsc_exe,
35
- ninja_exe,
36
- rescript_editor_analysis_exe,
37
- rescript_tools_exe,
38
- rescript_exe,
39
- rewatch_exe,
40
- } ,
41
- } = mod ;
47
+ bsb_helper_exe,
48
+ bsc_exe,
49
+ ninja_exe,
50
+ rescript_editor_analysis_exe,
51
+ rescript_tools_exe,
52
+ rescript_exe,
53
+ rewatch_exe,
54
+ } = binPaths ;
You can’t perform that action at this time.
0 commit comments