diff options
author | isaacs <i@izs.me> | 2011-03-29 01:40:59 +0400 |
---|---|---|
committer | isaacs <i@izs.me> | 2011-03-30 09:04:59 +0400 |
commit | 2a2f92e577c80ba386291348353f4806f6ec75b8 (patch) | |
tree | 3784508447bd9d0d01f7026169fd0cf1f5665ef5 /lib | |
parent | edcdb90075672f0546a8707a28cf3ccc0e60126a (diff) |
Write the object to package.json, not the string
Diffstat (limited to 'lib')
-rw-r--r-- | lib/publish.js | 2 |
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) |