willviles / firebase-pnpm-workspaces Goto Github PK
View Code? Open in Web Editor NEWPNPM workspaces + Firebase deployments made easy
PNPM workspaces + Firebase deployments made easy
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 error
.../share/pnpm/store/v3/tmp/dlx-25000 | Progress: resolved 1, reused 0, downloaded 0, adde.../share/pnpm/store/v3/tmp/dlx-25000 | Progress: resolved 2, reused 2, downloaded 0, adde.../share/pnpm/store/v3/tmp/dlx-25000 | Progress: resolved 5, reused 4, downloaded 0, adde.../share/pnpm/store/v3/tmp/dlx-25000 | Progress: resolved 16, reused 12, downloaded 0, ad.../share/pnpm/store/v3/tmp/dlx-25000 | Progress: resolved 34, reused 34, downloaded 0, ad.../share/pnpm/store/v3/tmp/dlx-25000 | Progress: resolved 40, reused 39, downloaded 0, ad.../share/pnpm/store/v3/tmp/dlx-25000 | +40 ++++
.../share/pnpm/store/v3/tmp/dlx-25000 | Progress: resolved 40, reused 39, downloaded 0, ad.../share/pnpm/store/v3/tmp/dlx-25000 | Progress: resolved 40, reused 40, downloaded 0, added 40, done
Error: Cannot copy '../../../node_modules/.pnpm/[email protected]_we2p4sglclq5bmc4orivof3sv4/node_modules/ts-jest' to a subdirectory of itself, '../../../node_modules/.pnpm/[email protected]_we2p4sglclq5bmc4orivof3sv4/node_modules/ts-jest'.
at /home/shinabr2/.local/share/pnpm/store/v3/tmp/dlx-25000/node_modules/.pnpm/[email protected]/node_modules/fs-extra/lib/copy/copy.js:213:21
at FSReqCallback.oncomplete (node:fs:197:23)
ERROR Command failed with exit code 1: /home/shinabr2/.local/share/pnpm/store/v3/tmp/dlx-25000/node_modules/.bin/firebase-pnpm-workspaces --filter api
pnpm: Command failed with exit code 1: /home/shinabr2/.local/share/pnpm/store/v3/tmp/dlx-25000/node_modules/.bin/firebase-pnpm-workspaces --filter api
at makeError (/home/shinabr2/.nvm/versions/node/v18.12.0/lib/node_modules/pnpm/dist/pnpm.cjs:22442:17)
at handlePromise (/home/shinabr2/.nvm/versions/node/v18.12.0/lib/node_modules/pnpm/dist/pnpm.cjs:23013:33)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Object.handler [as dlx] (/home/shinabr2/.nvm/versions/node/v18.12.0/lib/node_modules/pnpm/dist/pnpm.cjs:188188:7)
at async /home/shinabr2/.nvm/versions/node/v18.12.0/lib/node_modules/pnpm/dist/pnpm.cjs:195480:21
at async main (/home/shinabr2/.nvm/versions/node/v18.12.0/lib/node_modules/pnpm/dist/pnpm.cjs:195451:34)
at async runPnpm (/home/shinabr2/.nvm/versions/node/v18.12.0/lib/node_modules/pnpm/dist/pnpm.cjs:195645:5)
at async /home/shinabr2/.nvm/versions/node/v18.12.0/lib/node_modules/pnpm/dist/pnpm.cjs:195637:7
I 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:
firebase-pnpm-workspaces/src/index.ts
Line 79 in 3fc3199
If you have time, you can check out my branch to give it a try, I will continue investigating this issue tomorrow.
Thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.