Using this plugin together with serverless framework made my package HUUUGE because it included all of the devDependencies etc. While researching I found this issue https://github.com/serverless/serverless/issues/5396 and after more debugging I found the issue (on my system) https://github.com/serverless/serverless/issues/5396#issuecomment-508371082 Changing this function https://github.com/prisma/serverless-plugin-typescript/blob/master/src/index.ts#L227 to always do a copy and not use Symlinks excludes the devDependencies correctly.