rabbah opened a new issue #14: should we support non-zip node action with 
exports.main?
URL: https://github.com/apache/incubator-openwhisk-runtime-nodejs/issues/14
 
 
   @rabbah commented on [Tue Oct 31 
2017](https://github.com/apache/incubator-openwhisk/issues/2918)
   
   if you declare a node.js action with a `function foo` and use `exports.main 
= foo`, the action will fail to run `Initialization has failed due to: 
ReferenceError: main is not defined`. Currently we're only supporting 
`exports.main` for zip node.js action. Should we allow it for non-zip actions 
as well?
   
   The alternative is using `--main` for the CLI or correspondingly from the 
API.
   This could be an issue for the nodejs runtimes library - @csantanapr wdyt?
   
   ---
   
   @jthomas commented on [Thu Nov 09 
2017](https://github.com/apache/incubator-openwhisk/issues/2918#issuecomment-343185255)
   
   I would definitely like this. Would be a nice feature for consistency. 
   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to