Thanks again for this code processor. I've gotten it running on the KitchenSink project.
I get an undefined ModuleEntry error when I run the code processor on Ti Mobile projects that use ACS whose commonjs module "ti.cloud" is included in the sdk, e.g., at /Library/Application Support/Titanium/modules/commonjs/ti.cloud/2.2.0 .
In these projects, tiapp.xml loads <module platform="commonjs" version="2.2.0">ti.cloud</module>
/usr/local/lib/node_modules/titanium-code-processor/bin/codeprocessor:301
modules[platform][name] = path.join(moduleEntry.modulePath, JSON.p
^
TypeError: Cannot read property 'modulePath' of undefined
at async.series.async.parallel.options.modules (/usr/local/lib/node_modules/titanium-code-processor/bin/codeprocessor:301:60)
at Array.forEach (native)
at /usr/local/lib/node_modules/titanium-code-processor/bin/codeprocessor:280:20
at async.parallel (/usr/local/lib/node_modules/titanium-code-processor/node_modules/async/lib/async.js:476:17)
at async.forEach (/usr/local/lib/node_modules/titanium-code-processor/node_modules/async/lib/async.js:94:25)
at async.parallel (/usr/local/lib/node_modules/titanium-code-processor/node_modules/async/lib/async.js:473:21)
at async.series.tasks.project (/usr/local/lib/node_modules/titanium-code-processor/bin/codeprocessor:226:8)
at ChildProcess.exithandler (child_process.js:538:7)
at ChildProcess.EventEmitter.emit (events.js:99:17)
at maybeClose (child_process.js:638:16)
I get rid of the undefined moduleEntry error if I remove the ti.cloud module line from tiapp.xml. I've reproduced this error with all the ACS projects I tested including the ACS example shipped in the Ti SDK. I reproduced this error while processing the KitchenSink project by adding that module line to its tiapp.xml.