anantab / serverless-plugin-ifelse

A Serverless Plugin to write If Else conditions in serverless YAML file
69 stars 19 forks source link

Apply conditions when running `serverless invoke local` #43

Closed macrouch closed 1 year ago

macrouch commented 1 year ago

When running a lambda function locally with serverless invoke local, the conditions defined in serverless.yml are not applied. Changing the hook from before:package:initialize to initialize allows the conditions to be applied both when running serverless offline and serverless invoke local ...

I also ran npm audit fix in a second commit to update vulnerabilities.