dot option in glob for ignore

This commit is contained in:
David DeSandro
2013-01-31 13:54:54 -05:00
parent a8a4f6fd2c
commit ad359e2659
6 changed files with 16 additions and 2 deletions

View File

@@ -272,9 +272,11 @@ Package.prototype.removeLocalPaths = function () {
}.bind(this);
// 1: get paths
var globOpts = { dot: true };
async.forEach(removePatterns, function (removePattern, next) {
// glob path for file path pattern matching
glob(path.join(this.localPath, removePattern), function (err, globPaths) {
var globPattern = path.join(this.localPath, removePattern);
glob(globPattern, globOpts, function (err, globPaths) {
if (err) return this.emit('error', err);
removePaths = removePaths.concat(globPaths);
next();