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:
authorisaacs <i@izs.me>2010-07-07 00:48:50 +0400
committerisaacs <i@izs.me>2010-07-07 00:48:50 +0400
commit314e8cef46d141a5ffa281a024dcec7ac3c55689 (patch)
tree7b776582f3395d37a46a17a8a3a5056a38caa0dc
parentd464e321fcdaddd507477787b0ac3df921091ba2 (diff)
Fixing bugs in 0.1.99, and enable support for itv0.1.19
-rwxr-xr-xnpm.js2
-rw-r--r--package.json2
-rw-r--r--scripts/install-docs.js2
3 files changed, 3 insertions, 3 deletions
diff --git a/npm.js b/npm.js
index 7b092c1a3..174157353 100755
--- a/npm.js
+++ b/npm.js
@@ -2,6 +2,7 @@
if (!process.EventEmitter.prototype.on) {
process.EventEmitter.prototype.on = process.EventEmitter.prototype.addListener
}
+var path = require("path")
if (!process.execPath) {
process.execPath = path.join(process.installPrefix, "bin", "node")
}
@@ -12,7 +13,6 @@ var npm = exports
, ini = require("./lib/utils/ini")
, log = require("./lib/utils/log")
, fs = require("fs")
- , path = require("path")
npm.commands = {}
npm.SHOULD_EXIT = true
diff --git a/package.json b/package.json
index 6d8d82378..41d37ab02 100644
--- a/package.json
+++ b/package.json
@@ -23,7 +23,7 @@
, "directories" : { "lib" : "./lib/" }
, "main" : "./npm"
, "bin" : { "npm" : "./cli.js" }
-, "engines" : { "node" : ">=0.1.100" }
+, "engines" : { "node" : ">=0.1.99" }
, "scripts" :
{ "activate" : "node scripts/install-docs.js"
, "deactivate" : "node scripts/install-docs.js"
diff --git a/scripts/install-docs.js b/scripts/install-docs.js
index 6b9e82c40..76b83ad7c 100644
--- a/scripts/install-docs.js
+++ b/scripts/install-docs.js
@@ -4,6 +4,7 @@
// reflect the current command.
var event = process.env.npm_lifecycle_event
+ , npm = require("../npm")
, exec = require("../lib/utils/exec")
, log = require("../lib/utils/log")
, fs = require("fs")
@@ -12,7 +13,6 @@ var event = process.env.npm_lifecycle_event
, mkdir = require("../lib/utils/mkdir-p")
, manTarget = path.join(process.installPrefix, "share/man/man1")
, exec = require("../lib/utils/exec")
- , npm = require("../../npm")
log(event, "docs")