Skip to content
This repository was archived by the owner on Jul 2, 2018. It is now read-only.

Commit ae46a41

Browse files
committed
fix bower component name resolve
1 parent 28bcbd8 commit ae46a41

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

commands/install.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ var install = function(componentEndpoint){
123123
// Get latest installed components name
124124
bower.commands.info(componentEndpoint, undefined, bowerInfoConfig)
125125
.on('end', function (componentInfo) {
126-
var componentName = componentInfo.latest.name;
126+
var componentName = componentInfo.latest && componentInfo.latest.name ? componentInfo.latest.name : componentInfo.name;
127127
payload.componentPathAbsolute = path.join(baseUrl, output.fsPaths[componentName]);
128128

129129
deffered.resolve(payload);

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "bb-cli",
3-
"version": "0.1.8",
3+
"version": "0.1.9",
44
"description": "Command line tools for working with Backbase CXP.",
55
"author": "Backbase",
66
"licenses": [

0 commit comments

Comments
 (0)