Require Serverless^0.5
Add supports for local Node runtime with Serverless 0.5
- Run local lambda on a child_process when call
sls function run
. In the child process, function are evaluated with flags given tos-project.json
- Turn runtime setting in
s-function.json
tolocal-node
- In
s-project.json
, add to custom field as following"custom": { "local-node": { // support only local-node "deploymentVersion": 'nodejs6.10', // enum ['nodejs6.10', 'nodejs4.3'], defaults to 'nodejs4.3' "flags": [ --harmony --harmony-async-await // Your flags here ] } }