mirror of
https://github.com/bower/bower.git
synced 2026-01-15 01:08:07 -05:00
Use the name when creating the empty json.
This commit is contained in:
@@ -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 {};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user