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:
authorForrest L Norvell <forrest@npmjs.com>2015-03-05 12:11:57 +0300
committerForrest L Norvell <forrest@npmjs.com>2015-03-05 12:14:45 +0300
commit5faad0d8cddc2aab4fc096414c20017fa61c3d0d (patch)
tree6221368c15a867e308094cb073168bf56399e0c4 /lib/dedupe.js
parentc56cfcd79cd8ab4ccd06d2c03d7e04030d576683 (diff)
dedupe: test/tap/dedupe-scoped.js uses find-dupes
Test is now self-contained as well.
Diffstat (limited to 'lib/dedupe.js')
-rw-r--r--lib/dedupe.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/dedupe.js b/lib/dedupe.js
index c4867d92c..c63705e18 100644
--- a/lib/dedupe.js
+++ b/lib/dedupe.js
@@ -320,8 +320,8 @@ function readInstalled (dir, counter, parent, cb) {
if (child.indexOf('@') === 0) {
fs.readdir(path.resolve(dir, "node_modules", child), function (er, scopedChildren) {
// error is ok, just means no children.
- ;(scopedChildren || []).forEach(function (sc) {
- children.push(child + "/" + sc)
+ (scopedChildren || []).forEach(function (sc) {
+ children.push(path.join(child, sc))
})
cb()
})