Open
Description
from the code:
if (this.serverless.service.package.individually) {
...
} else {
installRequirements(
this.options.fileName,
'.serverless',
this.serverless,
this.servicePath,
this.options
);
if (this.options.vendor) {
// copy vendor libraries to requirements folder
copyVendors(this.options.vendor, '.serverless', this.serverless);
}
}
I think
if (this.options.vendor) {
// copy vendor libraries to requirements folder
copyVendors(this.options.vendor, '.serverless', this.serverless);
}
should be outside the if-else block as probably we want the general - "cross functions" vendor folder to be copied to each module, even if individuality was set to true