grunt-aws-lambda
grunt-aws-lambda copied to clipboard
add option "include_basedir" to add additional binary module files
use case: I have an folder "./node_modules_lambda" which is listed in ".npmignore" and contains "./node_modules_lambda/node_modules/fibers/bin/linux-x64-v8-3.14/fibers.node" which is the binary specific for the was lambda environment.
lambda_package: {
default: {
options: {
include_files: [ './node_modules/fibers/bin/linux-x64-v8-3.14/**/*' ],
include_basedir: './node_modules_lambda'
}
}
},
Hi Andreas, thanks for the pull request!
Could you help me understand your use case a little more. Is it that your lambda function is in the root directory, but your lambda package.json and node_modules is in a subdirectory?
Is there a reason you don't want to put it all in a subdirectory and use package_folder?
Also, it looks like some tests are failing. Is that due to the change or are they just flakey?