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:
authorisaacs <i@izs.me>2011-03-29 01:40:59 +0400
committerisaacs <i@izs.me>2011-03-30 09:04:59 +0400
commit2a2f92e577c80ba386291348353f4806f6ec75b8 (patch)
tree3784508447bd9d0d01f7026169fd0cf1f5665ef5 /lib
parentedcdb90075672f0546a8707a28cf3ccc0e60126a (diff)
Write the object to package.json, not the string
Diffstat (limited to 'lib')
-rw-r--r--lib/publish.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/publish.js b/lib/publish.js
index b8e647770..34e5a7e34 100644
--- a/lib/publish.js
+++ b/lib/publish.js
@@ -73,7 +73,7 @@ function preBuild (data, bt, cb) {
delete pbo.scripts.install
delete pbo.scripts.postinstall
}
- fs.writeFile(pbj, JSON.stringify(pbj), "utf8", function (er) {
+ fs.writeFile(pbj, JSON.stringify(pbo), "utf8", function (er) {
if (er) return cb(er)
tar.pack(tb, pb, pbo, false, function (er) {
if (er) return cb(er)