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

feat: added flags to control deps and dir #6

Closed pcrodrigues0 closed 2 years ago

pcrodrigues0 commented 2 years ago

Found some problems when using the package with lerna.

In this scenario, the schema file is not present in the same dir of the serverless.yml file being compiled. This will cause a error in the copy process.

Also found a problem during the prisma dependence install, when using lerna with yarn workspaces is not allowed to install or remove dependencies directly with yarn. In this cases prisma should be previously installed on package.json being compiled.

This way we have 2 new params inside the serverless.yml file:

image

this closes https://github.com/danieluhm2004/serverless-webpack-prisma/issues/5

danieluhm2004 commented 2 years ago

Thank you very much for your contribution.

I've also verified that the tests are running smoothly!

Could you please add a simple README to make that option available to everyone?

Again, thank you very much. :)

pcrodrigues0 commented 2 years ago

@danieluhm2004 nice reminder! Added to readme

danieluhm2004 commented 2 years ago

Hi @pcrodrigues0

There were a few typos in the readme, so I fixed it!

Will be updated on NPM soon!

Thank you so much for your interest in my project.