Skip to content

Commit

Permalink
Fix for windows pats in exclude and include
Browse files Browse the repository at this point in the history
  • Loading branch information
erikbarke committed Nov 7, 2016
1 parent f6550e4 commit 2ca5747
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions lib/framework.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@ function Framework(bundler, compiler) {

var tsconfig;

extend("include", karmaTypescriptConfig, configFileJson.config);
extend("exclude", karmaTypescriptConfig, configFileJson.config);
extend("include", configFileJson.config, karmaTypescriptConfig);
extend("exclude", configFileJson.config, karmaTypescriptConfig);

if(ts.parseConfigFile) {

Expand Down Expand Up @@ -128,10 +128,17 @@ function Framework(bundler, compiler) {
var list = union(a[key], b[key]);

if(list && list.length) {
b[key] = list;

a[key] = list.map(function(item){
return fixWindowsPath(item);
});
}
}

function fixWindowsPath(value) {
return value.replace(/\\/g, "/");
}

function convertOptions(options) {

if(options) {
Expand Down

0 comments on commit 2ca5747

Please sign in to comment.