JSPM only works with import 'devour-client/lib'
I just started a JSPM angular 2 project (according to this project).
Installing devour client: jspm install npm:devour-client works. When I need it in a component it only works when I use import JsonApi from 'devour-client/lib';
Am I missing something or is there something wrong regarding the packaging of this module?
Hmmm... somehow this is the first time I've ever heard of JSPM?
We probably need to look into how we publish this module a little deeper - looking at our package.json file, I wonder if I've been publishing this the wrong way?
I found this blog explaining how a library should be structured as CommonJS so it can be used in SystemJS based applications like angular2. I think the section "Creating the public API of a library" explains what is missing in the devour project.