GoogleCloudPlatform / functions-framework-nodejs

FaaS (Function as a service) framework for writing portable Node.js functions
Apache License 2.0
1.29k stars 158 forks source link

Ability to run cloud function that uses yarn 2 plug and play mode without invoking yarn. #532

Open ervin-pactum opened 1 year ago

ervin-pactum commented 1 year ago

We experience about 2x memory usage when using cloud function in yarn 2 plug and play, zero install mode.

This makes me think that maybe, it should be somehow possible to alter default /bin/bash -c yarn functions-framework command into something more yarn pnp friendly, possibly by providing some form of custom procfile in the code deployed?

Alternatively - maybe there is some other issue in zero install mode? we do have workspace-tools plugin installed, and verified that yarn workspaces focus --all --production gets called during cloud function build process.