mirror of
https://github.com/bower/bower.git
synced 2026-04-24 03:00:19 -04:00
dot option in glob for ignore
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user