Skip to content

Commit

Permalink
fix: fix combined packaging in serverless plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
JulioC authored and Bielik20 committed Jul 12, 2023
1 parent 849bc13 commit 7251de8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/nx-serverless/plugin/packaging/packaging-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@ export class PackagingManager {
const destination = this.generateFunctionCombinedPath();
functions.forEach((func) => {
func.setArtifactPath(destination);
files.push(this.findFunctionFiles(func, outputAbsolutePath));
assets.push(this.findAssets(func));
files.push(...this.findFunctionFiles(func, outputAbsolutePath));
assets.push(...this.findAssets(func));
});
assets.push(this.findCommonAssets());
assets.push(...this.findCommonAssets());
const uniqueAssets = [...new Set(assets)];
await this.putAssetsNextToFunctionFiles(uniqueAssets, outputAbsolutePath);

Expand Down

0 comments on commit 7251de8

Please sign in to comment.