diff --git a/lib/src/index.js b/lib/src/index.js index c2d0463d..a95ac411 100644 --- a/lib/src/index.js +++ b/lib/src/index.js @@ -1,6 +1,5 @@ 'use strict'; -var path = require('path'); var assign = require('object-assign'); var through2 = require('through2'); var gs = require('glob-stream'); @@ -14,21 +13,6 @@ var isValidGlob = require('is-valid-glob'); var getContents = require('./getContents'); var resolveSymlinks = require('./resolveSymlinks'); -function normalizePath(options) { - - function normalize(globFile, enc, cb) { - // TODO: probably move this somewhere - // Ref https://github.com/gulpjs/vinyl/issues/80 - var normalizedFile = assign({}, globFile, { - path: path.normalize(globFile.path), - }); - - cb(null, normalizedFile); - } - - return through2.obj(options, normalize); -} - function createFile(globFile, enc, cb) { cb(null, new File(globFile)); } @@ -56,7 +40,6 @@ function src(glob, opt) { var globStream = gs.create(glob, options); var outputStream = globStream - .pipe(normalizePath(options)) .pipe(resolveSymlinks(options)) .pipe(through2.obj(options, createFile)); diff --git a/package.json b/package.json index 3f41c820..947ea345 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ ], "dependencies": { "duplexify": "^3.2.0", - "glob-stream": "^5.2.0", + "glob-stream": "^5.3.2", "graceful-fs": "^4.0.0", "gulp-sourcemaps": "^1.5.2", "is-valid-glob": "^0.3.0",