Closed arichiardi closed 7 years ago
It looks like the Typescript plugin handles the invoke local
in a custom way:
https://github.com/graphcool/serverless-plugin-typescript/blob/master/src/index.ts#L43-L57
@arichiardi Hi!
You're not doing anything wrong, I don't think - I didn't include specific support for this, and haven't looked at what it would take - it may be relatively simple. If it's something you want to take a look at, that'd be great, too.
Yeah well, I have many OSS things queued up but I will try to explore a solution...whoever comes first wins ah ah!
So the problem is that invoke local -f example
does not pass a service.service
value, and therefore basepath
takes opts.function
...
Second problem is that we produce a zip and remove the js files...so this is probably not worth pursuing given the REPL...
So it seems that having index.js
in the project root also enable sls invoke local --function
to work properly (at least here). Closing this!
Hello folks!
I am trying to invoke a function locally:
After having executed
serverless package
to create my zip file:I try the following, which fails:
Am I doing something wrong here?
Thank you this package is really great for mixed cljs/js project on AWS Lambda!