Reputation: 3243
I install es5-shim with bower correctly with:
bower install es5-shim
But it doesn't include a main file, so when listing the sources I get an empty list:
bower list --sources
{}
I've looked into es5-shim repo and it just has a package.json which includes a definition for "main": "es5-shim.js"
How is the component.json generated?
It seems to miss the main attribute. This is the component.json I get in the components/es5-shim when installing.
Upvotes: 1
Views: 918
Reputation: 63487
Bower doesn't use package.json. Bower will fall back and generate a component.json from the repo name and git tag version when a repo doesn't have a component.json, which is why it doesn't have a main
attribute.
Upvotes: 1