serverless-plugin-typescript icon indicating copy to clipboard operation
serverless-plugin-typescript copied to clipboard

serverless --path parameter isn't working?

Open fuyu opened this issue 7 years ago • 1 comments

Hi, I've noticed that when I provide --path parameter in sls invoke local -f .. -p path/to/event.json the invocation finishes with error: The file you provided does not exist..

I guessed from the code here that I need to add include option to serverless.yml file so that event.json gets copied to .build directory: https://github.com/graphcool/serverless-plugin-typescript/blob/4bace79c1dd25cfb416cb7a4e4cc019c86fec309/src/index.ts#L149:L152

like so:

package:
  include:
    - src/**/event.json

However, any changes to event.json are not being updated when I do a new lambda invocation. So I wonder if the --path paramter isn't working so far or am I doing it wrong?

fuyu avatar Feb 08 '18 13:02 fuyu

I experienced the same behaviour... any update on this?

slimakovec avatar Oct 31 '18 11:10 slimakovec