dougmoscrop / serverless-plugin-include-dependencies

MIT License
184 stars 41 forks source link

feat: add handlerRoot plugin config #96

Closed tommarien closed 6 months ago

tommarien commented 6 months ago

When building outputs to root directory in a monorepo for instance while using nest-cli, you end up with outputs in root/dist/app-name, this is not how serverless-compose wants it. by default the this.serverless.config.servicePath will be the path of app you are building.

So in other words you get a failure because it is looking for

'root/apps/app-name/dist/app-name/main'

this allows to override this trough custom config