toddmotto/fluidvids

npm installation issue

acstll opened this issue · 0 comments

After installing with npm as stated in the REAME, requiring the package with

var fluidvids = require('fluidvids')();

fails because npm installs the package under node_modules/fluidvids.js just because that's the name of the module in package.json.

https://github.com/toddmotto/fluidvids/blob/master/package.json#L2

This is my workaround:

var fluidvids = require('fluidvids.js/dist/fluidvids')();

I think simply changing the package name in package.json to fluidvids should fix it and be no harm since the package isn't published to npm.


By the way.

👍 +1 for using the repo hook for bower.
👎 -1 for not publishing to npm.