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

Feature request: Ability to symlink prisma schema and ability to ignore functions #23

Closed rostislav-simonik closed 1 year ago

rostislav-simonik commented 1 year ago

Ability to symlink prisma folder.

In our projects, we are sharing prisma schema through the installed package. And we are symlinking it to repo root.

copyPrismaSchemaToFunction will copy the symlink instead of the folder itself, and obviously in packaging given symlink points to the wrong (non-existing location). It would be great to be able to symlink a given folder instead of copying it.

Ability to ignore functions

If serverless config is configured to package functions individually, then not every function in our project is prisma based, That will resulting packaging failure, because of missing prisma files. Would be great to have the ability to specify which functions can be ignored.

danieluhm2004 commented 1 year ago

Thank you for your pull request!