dougmoscrop / serverless-plugin-include-dependencies

MIT License
184 stars 40 forks source link

Include only base name of dependencies #10

Closed nsimone closed 7 years ago

nsimone commented 7 years ago

Fixes error when requiring a file of a dependency. Eg. require('dep/file') used to result in Serverless error:

Error --------------------------------------------------
     Cannot find module '/path/dep/file/package.json'
dougmoscrop commented 7 years ago

Thanks! Could you add a test that fails without the change?