Replies: 3 comments 16 replies
-
Thanks, that's a great idea! I'll look into it. Of course I would also prefer not having to maintain |
Beta Was this translation helpful? Give feedback.
-
@ih84ds I could use a bit more info on how you managed to deploy it. I tried to apply your strategy, but I get the following error when I try to deploy:
The problem seems to be that when executing the firebase deploy command, it tries to find the firebase-functions binary in the node_modules folder relative to the "source" setting. See code here So in my case it would be looking for node_modules inside of the isolate directory. |
Beta Was this translation helpful? Give feedback.
-
@ih84ds Today I managed to solve a long standing pain point. Now we are able to adhere to the officially recommended Firebase setup for monorepos. See the announcement here for more info. I actually think this is the preferred approach, because it simplifies the configuration and most importantly allows you to run multiple firebase packages together in a single emulator setup. I don't think you can achieve this without the firebase-tools fork. But likely I will still add support for your idea of deploying directly with isolate-package by copying the local firebase.json into the isolate output, because I think I already have the logic implemented in a branch... |
Beta Was this translation helpful? Give feedback.
-
First of all, THANK YOU SO MUCH for making this package! I was pulling my hair out trying to find an elegant solution for not being able to maintain package isolation in my yarn workspaces monorepo.
I believe I have a simpler approach for deploying firebase functions than the one that is laid out here. This strategy allows you to preserve "live code updates" and allows
firebase.json
to remain unmodified.Instead of setting
"source": "./isolate"
, you can do deployment using a script like this in thepackage.json
of your workspace package:This takes advantage of
firebase.json
being copied into./isolate
. That way, it will deploy from thesource
relative to thatfirebase.json
. Meanwhile, local dev emulators remain unaffected by the isolate stuff. 🙌I appreciate the fact that
firebase-tools-with-isolate
exists, but I don't want my project(s) to be dependent on a fork that may or may not have all of the latest upstream changes merged.Beta Was this translation helpful? Give feedback.
All reactions