Project: titanium
Issue TIMOB-23264: Windows: Unable to load CommonJS module with no package.json or index.js
When trying to load a CommonJS module (in my case http://github.com/Topener/To.ImageCache) it complained it couldn't find it even though it works on Android/iOS I had to move the js file to the lib folder for it to work again. We need to support the legacy pattern of looking for moduleid/moduleid.js in Titanium CommonJS modules. Right now we require spec-compliant CommonJS directories: a package.json pointing to main; an index.js or an index.json.
Story points: 5