Tim-B / grunt-aws-lambda

A grunt plugin to assist in developing functions for AWS Lambda.
MIT License
247 stars 100 forks source link

add option "include_basedir" to add additional binary module files #63

Open aheissenberger opened 8 years ago

aheissenberger commented 8 years ago

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'
         }
     }
 },
Tim-B commented 8 years ago

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?