grunt-aws-lambda icon indicating copy to clipboard operation
grunt-aws-lambda copied to clipboard

add option "include_basedir" to add additional binary module files

Open aheissenberger opened this issue 9 years ago • 1 comments

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'
         }
     }
 },

aheissenberger avatar Jan 23 '16 13:01 aheissenberger

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?

Tim-B avatar Jan 23 '16 21:01 Tim-B