Repository navigation
Exclude node_modules completely if deploying to google cloud functions, as GCF installs package.json. - #264
Conversation
|
Hi @debanjanbasu , thank you for the PR. Can you fill out the description template completely - especially the checkboxes and check "enable edits from maintainers" in your PR? |
HyperBrain
left a comment
There was a problem hiding this comment.
Only a small semantical change :)
| }); | ||
| // Copy modules only if not google-cloud-functions | ||
| // GCF Auto installs the package json | ||
| if (_.get(this.serverless, 'service.provider.name') !== 'google') { |
There was a problem hiding this comment.
I would prefer an early exit here if the provider is google instead of putting the default case into the if.
if (_.get(this.serverless, 'service.provider.name') === 'google') {
return BbPromise.resolve();
}
...
There was a problem hiding this comment.
Updated this. I will add unit tests for the new behavior to restore coverage.
|
@debanjanbasu May I ask you for a favor? There is still the column for GCF missing in the provider compatibility chart (README). Would you mind to prepare a PR that adds the GCF status to the README? |
Exclude node_modules completely if deploying to google cloud functions, as GCF installs package.json.
Exclude node_modules completely if deploying to google cloud functions, as GCF installs package.json.
Added a check to see if the provider is Google
How can we verify it:
Todos:
Is this ready for review?: YES
Is it a breaking change?: NO