Permalink
Browse files

Using JSON.stringify now instead of util.inspect to write package.jso…

…n files
  • Loading branch information...
davglass committed Feb 21, 2011
1 parent 542feff commit bf2e5ddc5ab81e084ad1b24eedb5025a329de534
Showing with 4 additions and 1 deletion.
  1. +4 −1 scripts/merge_package_json.js
@@ -36,7 +36,10 @@ for (var i in other) {
main[i] = other[i];
}
-var outData = sys.inspect(main, false, Infinity);
+//var outData = sys.inspect(main, false, Infinity);
+var outData = JSON.stringify(main);
+
+outData = outData.replace(/,/g, ',\n\t').replace(/{/g, '{\n').replace(/\[/g, '[\n');
if (exists('./build/' + pack)) {
fs.writeFileSync(path.join('./build/', pack, 'package.json'), outData);

0 comments on commit bf2e5dd

Please sign in to comment.