danieluhm2004 / serverless-webpack-prisma

When using serverless webpack, you can save up to 50% of package capacity by deleting unnecessary Prisma engine.
https://www.npmjs.com/package/serverless-webpack-prisma
MIT License
33 stars 27 forks source link

Separate paths for prisma schema file location and .webpack folder #18

Closed joshg47 closed 1 year ago

joshg47 commented 2 years ago

I have a setup in which my prisma.schema file is in an internal package. I would love to be able to use prismaPath to point to it, but when I do that, the serverless-webpack-prisma code thinks that that's the directory where the .webpack generate folder lives: https://github.com/danieluhm2004/serverless-webpack-prisma/blob/main/src/index.js#L45

This should be an easy one - can we separate out these two paths to make each its own configurable option?