0.0.2 • Published 2 years ago

my-prisma-core-generator v0.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Prisma Core Modules Generator

Automatically generate Core Modules from your Prisma Schema. This package contains a prisma generator so reference will automatically update everytime you will run prisma generate

Getting Started

  1. Install this package using:
npm install -D my-prisma-core-generator
  1. Add the generator to the schema
generator core {
  provider = "node node_modules/my-prisma-core-generator"
}
  1. Run npx prisma generate to trigger the generator. This will create a core-temp folder in src

Options

Specifying Output

You can specify the out of the core using the output property

generator core {
  provider = "node node_modules/my-prisma-core-generator"
  output = "../../core"
}