Skip to content
This repository has been archived by the owner on Mar 26, 2018. It is now read-only.

ability to take main file from package json if bower.json is not exists #38

Open
mogadanez opened this issue Jul 31, 2015 · 1 comment

Comments

@mogadanez
Copy link

Some components author ( cferdinandi/smooth-scroll#155 ), does not want to
add official support specific package managers.

In this case, it not have bower.json file with specified main property. So, after bowerRequirejs task execution it takes first file in package root folder - in this case it is gulp.js

However, in this particular module, main file is specified in package json, and it will be nice if bowerRequirejs task can fallback to it when resolve mappings

@sindresorhus
Copy link
Member

That logic should really be in Bower itself, but sure, a good PR (to the bower-requirejs module, not here) with tests would be accepted.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants