diff options
-rw-r--r-- | lib/bundle.js | 2 | ||||
-rw-r--r-- | package.json | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/bundle.js b/lib/bundle.js index dfb5f24ff..b99f9e0b5 100644 --- a/lib/bundle.js +++ b/lib/bundle.js @@ -60,6 +60,6 @@ function writeBundleShim (location, depNames, cb) { + "if (i) require.paths.shift(__dirname)\n" + depNames.map(JSON.stringify).map(function (d) { return "exports["+d+"] = require('./'+"+d+")\n" - }) + }).join("\n") fs.writeFile(path.join(location, "index.js"), data, cb) } diff --git a/package.json b/package.json index 1e41cfe98..251b7be37 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name" : "npm" , "description" : "A package manager for node" -, "version" : "0.1.27-7" +, "version" : "0.1.27-8" , "homepage" : "http://npmjs.org/" , "author" : "Isaac Z. Schlueter <i@izs.me> (http://blog.izs.me)" , "contributors" : |