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:
authorisaacs <i@izs.me>2010-03-26 02:19:44 +0300
committerisaacs <i@izs.me>2010-03-26 02:19:44 +0300
commit9ba38d757beb09b341d6b33f2fa5fe7be1afb3c0 (patch)
treef56ca512bdd2d00a10663be665a2bfb0bfc9d02c /npm.js
parent284d0524ed64011a5ef4b116029f00cedca435fb (diff)
Don't hang ini.config on npm.config because it gets clobbered by the "config" command.
Diffstat (limited to 'npm.js')
-rwxr-xr-xnpm.js7
1 files changed, 3 insertions, 4 deletions
diff --git a/npm.js b/npm.js
index 0245386d2..7aeecd11b 100755
--- a/npm.js
+++ b/npm.js
@@ -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",