mirror of
https://github.com/bower/bower.git
synced 2026-04-24 03:00:19 -04:00
Fix bug when trying bower on the root folder.
This commit is contained in:
@@ -528,7 +528,7 @@ Project.prototype._readJson = function () {
|
||||
}, function () {
|
||||
// No json file was found, assume one
|
||||
return Q.nfcall(bowerJson.parse, {
|
||||
name: path.basename(that._config.cwd)
|
||||
name: path.basename(that._config.cwd) || 'root'
|
||||
});
|
||||
})
|
||||
.then(function (json) {
|
||||
|
||||
Reference in New Issue
Block a user