diff options
author | isaacs <i@izs.me> | 2010-03-26 02:19:44 +0300 |
---|---|---|
committer | isaacs <i@izs.me> | 2010-03-26 02:19:44 +0300 |
commit | 9ba38d757beb09b341d6b33f2fa5fe7be1afb3c0 (patch) | |
tree | f56ca512bdd2d00a10663be665a2bfb0bfc9d02c /npm.js | |
parent | 284d0524ed64011a5ef4b116029f00cedca435fb (diff) |
Don't hang ini.config on npm.config because it gets clobbered by the "config" command.
Diffstat (limited to 'npm.js')
-rwxr-xr-x | npm.js | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -2,9 +2,8 @@ var npm = exports, set = require("./lib/utils/set"), get = require("./lib/utils/get"), - ini = require("./lib/utils/ini"); - -npm.config = ini.config; + ini = require("./lib/utils/ini"), + log = require("./lib/utils/log"); [ "install" , "activate" @@ -33,7 +32,7 @@ npm.get = function (name) { return get(registry, name) }; var path = require("path"); Object.defineProperty(npm, "root", - { get: function () { return npm.config.root } + { get: function () { return ini.config.root } , set: function (newRoot) { ini.set("root", newRoot) } }); Object.defineProperty(npm, "dir", |