You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 19, 2026. It is now read-only.
yarn why @types/request
yarn why v1.13.0
[1/4] 🤔 Why do we have the module "@types/request"...?
[2/4] 🚚 Initialising dependency graph...
[3/4] 🔍 Finding dependency...
[4/4] 🚡 Calculating file sizes...
=> Found "@types/[email protected]"
info Reasons this module exists
- "@google-cloud#common" depends on it
- Hoisted from "@google-cloud#common#@types#request"
info Disk size without dependencies: "28KB"
info Disk size with unique dependencies: "796KB"
info Disk size with transitive dependencies: "796KB"
info Number of shared dependencies: 4
✨ Done in 0.11s.
yarn why @types/duplexify
yarn why v1.13.0
[1/4] 🤔 Why do we have the module "@types/duplexify"...?
[2/4] 🚚 Initialising dependency graph...
[3/4] 🔍 Finding dependency...
[4/4] 🚡 Calculating file sizes...
=> Found "@types/[email protected]"
info Reasons this module exists
- "@google-cloud#common" depends on it
- Hoisted from "@google-cloud#common#@types#duplexify"
info Disk size without dependencies: "16KB"
info Disk size with unique dependencies: "732KB"
info Disk size with transitive dependencies: "732KB"
info Number of shared dependencies: 1
✨ Done in 0.11s.
This adds 100's of KB of dependencies which could be avoided ifthe @types were in devDependencies instead of dependencies.
This is significant if you're using Cloud Functions because it will impact cold start times.
Environment details
8.9.1|8.15.0|10.14.05.5.1|6.4.1@google-cloud/commonversion:0.31.1Steps to reproduce
npm inityarn add @google-cloud/[email protected]We now have this
package.json:ls node_modules/@types:This adds 100's of KB of dependencies which could be avoided ifthe
@typeswere indevDependenciesinstead ofdependencies.This is significant if you're using Cloud Functions because it will impact cold start times.