Browse files

Fixed a bug in the manifest lib.

  • Loading branch information...
1 parent 75e958c commit 9ff7c139f6c3c8e85759ad7559c6c3658fddb818 @cb1kenobi cb1kenobi committed Aug 12, 2012
Showing with 6 additions and 5 deletions.
  1. +2 −2 README.md
  2. +4 −3 lib/manifest.js
View
4 README.md
@@ -1,7 +1,7 @@
## Overview
-This is a common library used by Appcelerator Node.js based software products such as the
-[Titanium CLI](http://github.com/appcelerator/titanium) and [Alloy](http://github.com/appcelerator/alloy).
+This is a common library used by Appcelerator Node.js-based software products such as the
+[Titanium CLI](http://github.com/appcelerator/titanium).
<a name="Installation"></a>
## Installation
View
7 lib/manifest.js
@@ -8,8 +8,9 @@
* https://github.com/indexzero/node-pkginfo
*/
-var path = require('path'),
- data = {};
+var fs = require('fs'),
+ path = require('path'),
+ data;
function find(pmodule, dir) {
dir = dir || pmodule.filename;
@@ -36,7 +37,7 @@ module.exports = function (pmodule) {
}
try {
- var dir = find(pmodule)
+ var dir = find(pmodule);
data = dir && fs.readFileSync(dir).toString();
data = JSON.parse(data) || {};
} catch(ex) {

0 comments on commit 9ff7c13

Please sign in to comment.