Fix bug when trying bower on the root folder.

This commit is contained in:
André Cruz
2013-07-27 16:05:53 +01:00
parent c06b9d696e
commit fcbefa218b

View File

@@ -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) {