We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4cccd63 commit 26432cbCopy full SHA for 26432cb
1 file changed
packages/aws-serverless/scripts/buildLambdaLayer.ts
@@ -73,6 +73,9 @@ async function buildLambdaLayer(): Promise<void> {
73
console.log(`Creating final layer zip file ${zipFilename}.`);
74
// need to preserve the symlink above with -y
75
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 });
79
}
80
81
// eslint-disable-next-line @typescript-eslint/no-floating-promises
0 commit comments