Skip to content

Commit

Permalink
fix(artillery): reduce bundle size on AWS Lambda (#2355)
Browse files Browse the repository at this point in the history
The dependencies became direct dependencies of Artillery when
@platform/fargate was moved into the monorepo. They are not needed
for workers running on AWS Lambda.
  • Loading branch information
hassy authored Dec 6, 2023
1 parent 99d295c commit 40f80cf
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions packages/artillery/lib/platform/aws-lambda/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -282,9 +282,20 @@ class PlatformLambda {
stderr: stderr3,
status: status3,
error: error3
} = spawn.sync('npm', ['uninstall', '@artilleryio/platform-fargate'], {
cwd: a9cwd
});
} = spawn.sync(
'npm',
[
'uninstall',
'dependency-tree',
'detective',
'is-builtin-module',
'try-require',
'walk-sync'
],
{
cwd: a9cwd
}
);
if (error3) {
artillery.log(stdout3?.toString(), stderr3?.toString(), status3, error3);
} else {
Expand Down

0 comments on commit 40f80cf

Please sign in to comment.