File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change 2
2
All notable changes to this project will be documented in this file.
3
3
This project adheres to [ Semantic Versioning] ( http://semver.org/ ) .
4
4
5
+ ## [ 0.5.5] - in progress
6
+ - fixes for Windows
7
+
5
8
## [ 0.5.4] - 2016-03-09
6
9
- fix bug that prevented scroll in Atom 1.6+
7
10
- ` < > ` button to open console
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ export function setGlobals(config: PackageJson) {
8
8
testRunner : config . config . testRunner ,
9
9
testRunnerOptions : config . config . testRunnerOptions || { }
10
10
} ) ;
11
+ // issues, bugs
11
12
loadRepo ( config ) ;
12
13
// set PackageDeps
13
14
loadRunnerDep ( config ) ;
@@ -32,15 +33,19 @@ function loadRunnerDep(config: PackageJson) {
32
33
throw message ;
33
34
}
34
35
36
+ // fix main path for Windows
37
+ let slash = navigator . appVersion . indexOf ( 'Win' ) !== - 1 ? '\\' : '/' ;
38
+ runnerMain = path . join . apply ( null , runnerMain . split ( slash ) ) ;
39
+ // trim root path to folder
35
40
runnerRoot = runnerRoot . substring ( 0 , runnerRoot . lastIndexOf ( '/' ) ) ;
41
+
36
42
let pathToMain = path . join ( runnerRoot , runnerMain ) ;
37
43
38
44
if ( ! ! require ( pathToMain ) . default ) {
39
45
window . coderoad . runner = require ( pathToMain ) . default ;
40
46
} else {
41
47
window . coderoad . runner = require ( pathToMain ) ;
42
48
}
43
-
44
49
}
45
50
46
51
function loadRepo ( config ) {
You can’t perform that action at this time.
0 commit comments