This repository was archived by the owner on Apr 8, 2020. It is now read-only.
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 22All notable changes to this project will be documented in this file.
33This project adheres to [ Semantic Versioning] ( http://semver.org/ ) .
44
5+ ## [ 0.5.5] - in progress
6+ - fixes for Windows
7+
58## [ 0.5.4] - 2016-03-09
69- fix bug that prevented scroll in Atom 1.6+
710- ` < > ` button to open console
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ export function setGlobals(config: PackageJson) {
88 testRunner : config . config . testRunner ,
99 testRunnerOptions : config . config . testRunnerOptions || { }
1010 } ) ;
11+ // issues, bugs
1112 loadRepo ( config ) ;
1213 // set PackageDeps
1314 loadRunnerDep ( config ) ;
@@ -32,15 +33,19 @@ function loadRunnerDep(config: PackageJson) {
3233 throw message ;
3334 }
3435
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
3540 runnerRoot = runnerRoot . substring ( 0 , runnerRoot . lastIndexOf ( '/' ) ) ;
41+
3642 let pathToMain = path . join ( runnerRoot , runnerMain ) ;
3743
3844 if ( ! ! require ( pathToMain ) . default ) {
3945 window . coderoad . runner = require ( pathToMain ) . default ;
4046 } else {
4147 window . coderoad . runner = require ( pathToMain ) ;
4248 }
43-
4449}
4550
4651function loadRepo ( config ) {
You can’t perform that action at this time.
0 commit comments