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>2011-03-10 02:39:03 +0300
committerisaacs <i@izs.me>2011-03-22 01:55:57 +0300
commit8194aaf649df48969a0aedd7151b9d1d44bb5778 (patch)
treea1733656934dccebf17ab243e9f96556a5dce4e7 /lib/utils/read-json.js
parent318404a269b9542f23253e8e786b6f8973b94c16 (diff)
bug in default bin hash
Diffstat (limited to 'lib/utils/read-json.js')
-rw-r--r--lib/utils/read-json.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/utils/read-json.js b/lib/utils/read-json.js
index a600e0711..2898a931d 100644
--- a/lib/utils/read-json.js
+++ b/lib/utils/read-json.js
@@ -206,7 +206,7 @@ function processObject (opts, cb) { return function (er, json) {
if (json.bin && typeof json.bin === "string") {
var b = {}
- b[ path.basename( json.bin ) ] = json.bin
+ b[ json.name ] = json.bin
json.bin = b
}