Skip to content

Commit

Permalink
feat(index): Running on invoke local
Browse files Browse the repository at this point in the history
Invoke local support (#19)
  • Loading branch information
shimonuri authored May 4, 2020
1 parent b80fc12 commit ff7eb1d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ In handler.py, external code can be imported:
```py
from common.resource import shared_resource
```

#### Licensing

serverless-package-external is licensed under the [MIT License](./LICENSE.txt).

It is originally based on [serverless-package-common](https://github.com/onlicar/serverless-package-common).
4 changes: 3 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ class PackageExternal {
'after:deploy:function:packageFunction': this.afterDeploy.bind(this),
'after:package:createDeploymentArtifacts': this.afterDeploy.bind(this),
"before:offline:start:init": this.beforeDeploy.bind(this),
"before:offline:start:end": this.afterDeploy.bind(this)
"before:offline:start:end": this.afterDeploy.bind(this),
"invoke:local:loadEnvVars": this.beforeDeploy.bind(this),
"invoke:local:invoke": this.afterDeploy.bind(this)
};

this.handleExit();
Expand Down

0 comments on commit ff7eb1d

Please # to comment.