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-08-27 11:55:21 +0400
committerisaacs <i@izs.me>2010-08-27 11:55:21 +0400
commit1c992a9ab092bb8f5baec51f4e861b2ec3ed6c14 (patch)
tree55cbfaf432bdbe488e8176def7cc383b047f1718
parent0f32c3955c2f3914254c7496cc9fe8f62e4dcf96 (diff)
do deps in a way that works with no.de setupsv0.1.27-6
-rw-r--r--lib/bundle.js2
-rw-r--r--package.json2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/bundle.js b/lib/bundle.js
index 2fb0b3022..dfb5f24ff 100644
--- a/lib/bundle.js
+++ b/lib/bundle.js
@@ -59,7 +59,7 @@ function writeBundleShim (location, depNames, cb) {
+ "if (i && i + 1) require.paths.splice(i, 1)\n"
+ "if (i) require.paths.shift(__dirname)\n"
+ depNames.map(JSON.stringify).map(function (d) {
- return "exports["+d+"] = require("+d+")\n"
+ return "exports["+d+"] = require('./'+"+d+")\n"
})
fs.writeFile(path.join(location, "index.js"), data, cb)
}
diff --git a/package.json b/package.json
index f1073e846..7d790fd81 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{ "name" : "npm"
, "description" : "A package manager for node"
-, "version" : "0.1.27-5"
+, "version" : "0.1.27-6"
, "homepage" : "http://npmjs.org/"
, "author" : "Isaac Z. Schlueter <i@izs.me> (http://blog.izs.me)"
, "contributors" :