Skip to content

Commit

Permalink
fix(Packaging): Do not exclude layer paths when packaging a layer (#8602
Browse files Browse the repository at this point in the history
)
  • Loading branch information
juanjoDiaz committed Dec 11, 2020
1 parent 3632e0e commit 86b366a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/plugins/package/lib/packageService.js
Expand Up @@ -209,7 +209,7 @@ module.exports = {
const layerObject = this.serverless.service.getLayer(layerName);
const layerPackageConfig = layerObject.package || {};

return this.getExcludes(layerPackageConfig.exclude, true)
return this.getExcludes(layerPackageConfig.exclude, false)
.then(exclude => {
const params = { exclude, include: this.getIncludes(layerPackageConfig.include) };
return params;
Expand Down

0 comments on commit 86b366a

Please sign in to comment.