Open shinaBR2 opened 1 year ago
I tried many hacks and cheat to bypass this issue and it still does not work:
devDependencies
package.json
node_modules
, pnpm-lock.yaml
This was a very frustrating experience. So I decided to temporarily not use the local workspace as a dependency of my Cloud Functions source code (in my case, the core
workspace is only one dependency of the api
workspace) , then I will get back to this later. You can instead check out this commit in case you may want to see the problem.
Hi @willviles first and foremost, thanks for your work when building this library, it will save tons of time for many future developers, I really appreciated that.
I faced the same problem here and end up trying this script with my public repository here. My repo is forked and built up from the turbo kitchen sink example
I tried to run on my repo the command
pnpx firebase-pnpm-workspaces --filter api
and got the following errorI am still not sure what are the problems here, but as I read the source code from your library, maybe the problem occurred during copying the dependencies: https://github.com/willviles/firebase-pnpm-workspaces/blob/3fc319959cd045e1340ecc967b4ed11af4a24154/src/index.ts#L79
If you have time, you can check out my branch to give it a try, I will continue investigating this issue tomorrow.
Thanks!