ck86 / main-bower-files

Getting all main bower files
583 stars 56 forks source link

Copy routine stops if bower.json file contains no "main" entry #124

Closed GeroL closed 8 years ago

GeroL commented 8 years ago

Test package: polymer-starter-kit It contains no main entry. No dependencies are copied. If I insert an empty main entry manually all dependencies are copied.

ck86 commented 8 years ago

@GeroL There is no bower package "polymer-starter-kit".

GeroL commented 8 years ago

Ah sorry it's "PolymerElements/polymer-starter-kit"

ck86 commented 8 years ago

The problem is that main-bower-files reads .bower.json, bower.json, package.json and composer.json until one file has a main property. In case polymer-starter-kit it uses the last found file which is package.json which has no dependencies.