This repository was archived by the owner on Feb 18, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -282,8 +282,7 @@ GithubLocation.configure = function(config, ui) {
282
282
} ) ;
283
283
} ;
284
284
285
- // regular expression to verify package names
286
- GithubLocation . packageFormat = / ^ [ ^ \/ ] + \/ [ ^ \/ ] + / ;
285
+ GithubLocation . packageNameFormats = [ '*/*' ] ;
287
286
288
287
GithubLocation . prototype = {
289
288
@@ -569,9 +568,9 @@ GithubLocation.prototype = {
569
568
} ,
570
569
571
570
// check if the main entry point exists. If not, try the bower.json main.
572
- build : function ( pjson , dir ) {
573
- var main = pjson . main || '' ;
574
- var libDir = pjson . directories && ( pjson . directories . dist || pjson . directories . lib ) || '.' ;
571
+ processPackage : function ( packageConfig , packageName , dir ) {
572
+ var main = packageConfig . main || '' ;
573
+ var libDir = packageConfig . directories && ( packageConfig . directories . dist || packageConfig . directories . lib ) || '.' ;
575
574
576
575
if ( main instanceof Array )
577
576
main = main [ 0 ] ;
@@ -622,7 +621,7 @@ GithubLocation.prototype = {
622
621
} , function ( ) { } )
623
622
. then ( function ( hasBowerMain ) {
624
623
if ( hasBowerMain )
625
- return hasBrowserMain ;
624
+ return hasBowerMain ;
626
625
627
626
main = 'index' ;
628
627
return checkMain ( main , libDir ) ;
You can’t perform that action at this time.
0 commit comments