My project structure looks like the following:
--root ----shared-modules ------------packageD -----------------serverless.yml -----------------package.json --