Hi.
I'm using jspm 0.17.0-beta.25
I'm probably doing something stupid but I'm having all sorts of fun importing packages which are a part of my source tree with jspm.
If I have an import like
import * as Component from './component'
then the default behaviour appears to be to try to load './component' as a file rather than './component/index.js
I've fixed this (although I've no idea if it's the correct approach) by declaring each of my own packages in the packages section of the jspm.config.js as follows
"/component": {
"main": "index.js"
}
This fixes the issue for a development build but as soon as I try to create a bundle using jspm bundle I'll get an error like
err Error on fetch for dist/component at file:///path/to/my/project/dist/component
Loading dist/index.js
Error: EISDIR: illegal operation on a directory, read
at Error (native)
Which looks to me like the bundler is ignoring my package definitions but I'm probably just solving my problem the wrong way
importing my modules as './component/index.js' isn't an option, primarily because I'm compiling from typescript externally to jspm/systemjs. Built in transpilers always seem to come with their own set of fun to debug problems so I would much much rather work that way.
TIA
Andrew Smith