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 23:37:25 +0400
committerisaacs <i@izs.me>2010-08-27 23:37:25 +0400
commitd4388749d4ace31b8b1a2dd8901e778a00fbd621 (patch)
tree4067de5fc8ad84565f32addfe56203fa23297048
parent7e0a01a48781fb66f7499245ca378a53aef3da97 (diff)
unnecessary \n
-rw-r--r--lib/bundle.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundle.js b/lib/bundle.js
index b99f9e0b5..f299f3cf7 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+")"
}).join("\n")
fs.writeFile(path.join(location, "index.js"), data, cb)
}