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/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/bundle.js2
1 files changed, 1 insertions, 1 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)
}