From 1c992a9ab092bb8f5baec51f4e861b2ec3ed6c14 Mon Sep 17 00:00:00 2001 From: isaacs Date: Fri, 27 Aug 2010 00:55:21 -0700 Subject: do deps in a way that works with no.de setups --- lib/bundle.js | 2 +- package.json | 2 +- 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 (http://blog.izs.me)" , "contributors" : -- cgit v1.2.3