Use the name when creating the empty json.

This commit is contained in:
André Cruz
2013-04-06 12:58:24 +01:00
parent 4c2c804d0d
commit e0eabb8d71

View File

@@ -204,7 +204,7 @@ Package.prototype._readJson = function (rc) {
}.bind(this), function (err) {
// If no json file was found, return an empty one
if (err.code === 'ENOENT') {
this._json = {};
this._json = { name: this.name };
return {};
}