Skip to content

Commit 26432cb

Browse files
committed
cleanup layer files
1 parent 4cccd63 commit 26432cb

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

packages/aws-serverless/scripts/buildLambdaLayer.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,9 @@ async function buildLambdaLayer(): Promise<void> {
7373
console.log(`Creating final layer zip file ${zipFilename}.`);
7474
// need to preserve the symlink above with -y
7575
run(`zip -r -y ${zipFilename} ${dirsToZip.join(' ')}`, { cwd: 'build/aws/dist-serverless' });
76+
77+
// Cleanup temporary installation files
78+
fs.rmSync('build/aws/dist-serverless/nodejs/', { recursive: true, force: true });
7679
}
7780

7881
// eslint-disable-next-line @typescript-eslint/no-floating-promises

0 commit comments

Comments
 (0)