Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorisaacs <i@izs.me>2011-12-16 06:05:58 +0400
committerisaacs <i@izs.me>2011-12-16 06:15:29 +0400
commitbc0b610bcf6f7cab8f3c3b078f9929ba8ecedd03 (patch)
treeabc2db75771f922e14c2c08224a40d68064ae15b
parented5a331fe6be1e72bb8472ba22458dc0577f64af (diff)
Fix #1888 Add the dir-excluding pattern where it belongs
-rw-r--r--lib/utils/excludes.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/utils/excludes.js b/lib/utils/excludes.js
index 9b407c945..75fe41c05 100644
--- a/lib/utils/excludes.js
+++ b/lib/utils/excludes.js
@@ -137,7 +137,7 @@ function test (file, excludeList) {
&& rf.slice(-1) === "/"
&& excludes.indexOf(ex + "/**") === -1) {
// log.warn(ex + "/**", "adding dir-matching exclude pattern")
- excludes.push(ex + "/**")
+ excludes.splice(ii, 1, ex, ex + "/**")
ll ++
}
}