if main isn't present, then default to ./index.js