Skip to content

Commit

Permalink
Fixed a bug in the manifest lib.
Browse files Browse the repository at this point in the history
  • Loading branch information
cb1kenobi committed Aug 12, 2012
1 parent 75e958c commit 9ff7c13
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions 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
Expand Down
7 changes: 4 additions & 3 deletions lib/manifest.js
Expand Up @@ -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;
Expand All @@ -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) {
Expand Down

0 comments on commit 9ff7c13

Please sign in to comment.