diff options
author | Dav Glass <davglass@gmail.com> | 2011-02-03 07:56:43 +0300 |
---|---|---|
committer | isaacs <i@izs.me> | 2011-02-04 20:45:38 +0300 |
commit | ba3dc4e48d2f75a03c43f7dad61050e1d611a7ba (patch) | |
tree | e36329f721bae9bc85be58f06c4a6f37a3a597ab /npm.js | |
parent | 5a4d3de3c8386ad78bf5aec111c7fca11212cbd6 (diff) |
Make the .npm directory configurable
Diffstat (limited to 'npm.js')
-rw-r--r-- | npm.js | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |