Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NPM modules not having a main attribute #47

Open
PaquitoSoft opened this issue Sep 6, 2015 · 0 comments
Open

NPM modules not having a main attribute #47

PaquitoSoft opened this issue Sep 6, 2015 · 0 comments

Comments

@PaquitoSoft
Copy link

Hi there!

I had a very hard time trying to make my little project work with karma-commonjs not because of this plugin directly but because some of the dependencies I'm using.
Some of them do not declare a main attribute, which is the one karma-commonjs uses to load the right files from the package.json for every dependency.

These are the dependencies and how they declare its main file in their package.json file:

The way I solved this issue was to create a post-install script in my project which adds the main atribute to the package.json file for each one of these dependencies, but I'm not very proud fo this workaround.

I would like to know what would be the right solution to be able to use these kind of dependencies.

Thanks a lot.

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

No branches or pull requests

1 participant