serverless-webpack-prisma
serverless-webpack-prisma copied to clipboard
`--data-proxy` command deprecated in most recent version of prisma
Hi,
Just wanted to give a heads up that users of this plugin may see issues since the the 5.2.0 release of prisma. The --data-proxy
parameter has been deprecated in favor of --no-engine
when using prisma generate
.
Since this package by default runs npx prisma generate --data-proxy
it may end up picking up/installing the latest version.
I noticed that the ability to specify a version has been added, so that can be used to circumvent this issue. A more proper fix is conditionally deciding which parameter to use based on version or similar.