Fix bug where we search for scripts in wwwroot/lib

This commit is contained in:
Anthony van der Hoorn 2015-10-01 11:29:41 -07:00 committed by Doug Bunting
parent 83aa5b12f2
commit fd7c5754fa
1 changed files with 2 additions and 1 deletions

View File

@ -285,7 +285,8 @@ functions @{
// Don't include directories that are children of a node_modules or bower_components directory
return Directory.GetFiles(path, searchPattern, SearchOption.AllDirectories)
.Where(p => p.IndexOf(sep + "node_modules" + sep) < 0 &&
p.IndexOf(sep + "bower_components" + sep) < 0)
p.IndexOf(sep + "bower_components" + sep) < 0 &&
p.IndexOf(sep + "wwwroot" + sep + "lib" + sep) < 0)
.Select(p => Path.GetDirectoryName(p))
.Distinct();
}