This is what I'm currently doing. It's undesirable because it replicates identical lib/ folder with shared functions:
/project/
└── /cloudfunctions/
├── /functionA/
│ ├── main.py
│ └── /lib/
└── /functionB/
├── main.py
└── /lib/
How do I organize or deploy functions so that the project structure can be more like this?
/project/
└── /cloudfunctions/
├── /functionA/
│ └── main.py
├── /functionB/
│ └── main.py
└── /lib/
To clarify more, I'm wondering how there isn't an --include-dependencies flag for gcloud functions deploy and I'm wondering what the best practice is to include a shared library like in the second folder structure.
For now this is my janky hack in deploy.sh
rm -rf lib
cp -r ../lib ./lib
gcloud functions deploy...