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
path: root/npm.js
diff options
context:
space:
mode:
authorDav Glass <davglass@gmail.com>2011-02-03 07:56:43 +0300
committerisaacs <i@izs.me>2011-02-04 20:45:38 +0300
commitba3dc4e48d2f75a03c43f7dad61050e1d611a7ba (patch)
treee36329f721bae9bc85be58f06c4a6f37a3a597ab /npm.js
parent5a4d3de3c8386ad78bf5aec111c7fca11212cbd6 (diff)
Make the .npm directory configurable
Diffstat (limited to 'npm.js')
-rw-r--r--npm.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/npm.js b/npm.js
index d32101274..90c10fee3 100644
--- a/npm.js
+++ b/npm.js
@@ -179,11 +179,11 @@ Object.defineProperty(npm, "root",
, enumerable : true
})
Object.defineProperty(npm, "dir",
- { get : function () { return path.join(npm.root, ".npm") }
+ { get : function () { return path.join(npm.root, npm.config.get('dotnpm')) }
, enumerable : true
})
Object.defineProperty(npm, "cache",
- { get : function () { return path.join(npm.root, ".npm", ".cache") }
+ { get : function () { return path.join(npm.root, npm.config.get('dotnpm'), ".cache") }
, enumerable : true
})
var tmpFolder