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
I see @types/node package being installed on yarn install --prod, which does take space on an AWS lambda package zip file (on OSX I see it to be 1.8 MB unzipped, 360 KB zipped).
To Reproduce
rm -fr node_modules
yarn install --prod
Check node_modules directory
Expected behavior
Expected behavior? I don't expect dev dependencies to make its way into production deployments.
Does it matter? since it's just 360 KB?
Well, maybe not the highest priority, but "function" services like AWS lambda is sensitive to deployment package size since it increases cold start. So trimming it down is a good thing.
Code snippets
No response
OS
macOS, linux
Node version
v14.19.1
Library version
8.222.0
API version
NA
Additional context
No response
The text was updated successfully, but these errors were encountered:
Describe the bug
I see
@types/node
package being installed on yarn install --prod, which does take space on an AWS lambda package zip file (on OSX I see it to be 1.8 MB unzipped, 360 KB zipped).To Reproduce
rm -fr node_modules
yarn install --prod
Expected behavior
Expected behavior? I don't expect dev dependencies to make its way into production deployments.
Does it matter? since it's just 360 KB?
Well, maybe not the highest priority, but "function" services like AWS lambda is sensitive to deployment package size since it increases cold start. So trimming it down is a good thing.
Code snippets
No response
OS
macOS, linux
Node version
v14.19.1
Library version
8.222.0
API version
NA
Additional context
No response
The text was updated successfully, but these errors were encountered: