0.0.3 • Published 12 months ago

serverless-esbuild-prisma v0.0.3

Weekly downloads
-
License
ISC
Repository
github
Last release
12 months ago

Serverless (Esbuild) Prisma

This will help you embed Prisma into your Serverless project. It will copy for example schema.prisma and libquery_engine* to the Serverless function .zip files.

This might also work without esbuild.

Big thanks to @danieluhm2004 for the inspiration.

How to use?

First, install the package by entering the following command.

npm install serverless-esbuild-prisma --save-dev

Add the corresponding plugin under the Serverless config file as shown below.

plugins:
  - serverless-esbuild
  - serverless-esbuild-prisma

This plugin also has some additional configs:

custom:
  prisma:
    prismaPath: ../../ # Passing this param, plugin will change the directory to find the dir prisma containing the prisma/prisma.schema
    ignoreFunctions: # Passing this param, we tell plugin which functions should be ignored and processed as non prisma based functions.
      - someNonPrismaFunction
0.0.3

12 months ago

0.0.2

12 months ago

0.0.1

12 months ago