Using the sam build
command I was expecting not to include the aws-sdk
package as the Node.js Lambda runtime already includes it.
As I understood the sam build
for nodejs is a port of claudia pack
command from claudiajs
, but I do not see any --no-optional-dependencies
flag when I run sam build --help
.
I tried installing aws-sdk
as an optional dependency but still included.
Is there a way to exclude a dependency from the node_modules
directory using the sam build
command?