Skip to content

Commit 9f371c8

Browse files
committed
use component name instead of raw name (#4)
1 parent f1530c9 commit 9f371c8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

utils.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ function resolve(name, workdir, mainfiles) {
4545
bowerJson = {},
4646
mainfile;
4747

48-
if (mainfiles[name]) {
49-
mainfile = mainfiles[name];
48+
if (mainfiles[compName]) {
49+
mainfile = mainfiles[compName];
5050
} else {
5151
var bowerPath = path.join(basedir, 'bower.json');
5252
var exists = fs.existsSync(bowerPath);

0 commit comments

Comments
 (0)