Skip to content

Commit ca6f13a

Browse files
authored
Merge pull request #177 from artemv/fix-dependencies-on-windows
fix: `dependencies` task on Windows
2 parents 348e38a + bf4848b commit ca6f13a

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

gulp/gulp-main-bower-files.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ var path = require('path');
1111
var is = require('is_js');
1212

1313
function getBowerFolder() {
14-
return 'node_modules/';
14+
return 'node_modules' + path.sep;
1515
}
1616

1717
module.exports = function(filter, opts, callback) {
@@ -56,8 +56,8 @@ module.exports = function(filter, opts, callback) {
5656

5757
var fileNames = mainBowerFiles(opts, callback).sort(function (a, b) {
5858
function extractPackageName(jsPath) {
59-
var parts = jsPath.split('node_modules/');
60-
var parts2 = parts[parts.length - 1].split('/');
59+
var parts = jsPath.split('node_modules' + path.sep);
60+
var parts2 = parts[parts.length - 1].split(path.sep);
6161
return parts2[0];
6262
}
6363
var nameA = extractPackageName(a);

0 commit comments

Comments
 (0)