Add external folders to the deploy package
npm install serverless-package-external



> Deploy a Serverless Python Function services with external code
Before deploying, this plugin symlinks folders containing shared code into the root directory of your Serverless function.
This plugin works also with serverless-offline plugin.
```
npm i serverless-package-external --save-dev
`yml
service: service-name
plugins:
- serverless-package-external
functions:
# Your functions here
custom:
packageExternal:
external:
- '../common'
- '../service-a/module'
`
#### Example Directory Structure
``
āāā common
āāā resource.py
āāā service-a
āāā handler.py
āāā serverless.yml
āāā module
āāā main.py
āāā service-b
āāā handler.py
āāā serverless.yml
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.
It is originally based on serverless-package-common.