-
Notifications
You must be signed in to change notification settings - Fork 161
Closed
Labels
🚨This issue needs some love.This issue needs some love.api: firestoreIssues related to the googleapis/nodejs-firestore API.Issues related to the googleapis/nodejs-firestore API.triage meI really want to be triaged.I really want to be triaged.
Description
The node_modules for a project containing only firestore as it's dependency are quite large (~150MB depending on exact OS/configuration). Most of this comes from the grpc dependency which is about 50MB and most unfortunately is included twice. Once at the top level node_modules/grpc and once within the node_modules for firestore ./node_modules/@google-cloud/firestore/node_modules/grpc.
Is there any way to only include grpc once when installed? Having this massive dependency makes deploying packages with firestore difficult where the size of the deployment package is constrained.
Environment details
- OS: mac osx and linux (node 6.10.3 docker image)
- Node.js version: 6.10
- npm version: npm 3.10.10 and yarn 1.3.2
- @google-cloud/firestore version: 0.10.0 and 0.10.1
Steps to reproduce
- Create a package.json file with a single dependency:
"@google-cloud/firestore": "^0.10.1" - Run
yarn install --productionornpm install --production - run
find . -name grpcand note the two copies of grpc.
Metadata
Metadata
Assignees
Labels
🚨This issue needs some love.This issue needs some love.api: firestoreIssues related to the googleapis/nodejs-firestore API.Issues related to the googleapis/nodejs-firestore API.triage meI really want to be triaged.I really want to be triaged.