We're starting to adopt a monorepo setup using yarn workspaces and we'd like to have our firebase functions inside it. The repo structure is something like:
repo
node_modules <- all dependencies
packages
core
commom
functions <- firebase functions
So, I have 2 problems with this setup:
- The dependencies of the functions don't live on the same folder as the entry file from functions
- The functions depends on other packages such as
core
andcommom
that are in the repo so yarn symlinks from node_modules to the packages in the repo.
Is there anyway I can handle this?
See Question&Answers more detail:os