sparse-intern-71089
06/23/2018, 5:41 PMbig-soccer-75859
06/23/2018, 11:30 PMbig-soccer-75859
06/23/2018, 11:31 PMbig-soccer-75859
06/23/2018, 11:32 PMmicroscopic-florist-22719
white-balloon-205
node_modules
automatically. If you are not seeing that - would be great if you could open an issue with details of your example so that we can investigate. Note that if packages are not getting included, you can explicitly include them using e.g. pulumi config set cloud-aws:functionIncludePackages express
. See https://github.com/pulumi/pulumi-cloud/blob/master/aws/config/index.ts#L42 for a few details on this config setting.big-soccer-75859
06/24/2018, 12:10 PMbig-soccer-75859
06/24/2018, 12:39 PMconst jwt = await import('jsonwebtoken');
it actually packages the @types/jsonwebtoken
module rather than the actual jsonwebtoken
module. Note that @types/jsonwebtoken
is in my devDependenciesbig-soccer-75859
06/24/2018, 1:01 PM@types/jsonwebtoken
and changing the line to const jwt = require('jsonwebtoken');
fixed the build but obviously the library becomes an any
which is a bit annoying but I can deal with it.white-balloon-205
big-soccer-75859
06/24/2018, 2:14 PM