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
- Install this package using:
npm install -D my-prisma-core-generator
- Add the generator to the schema
generator core {
provider = "node node_modules/my-prisma-core-generator"
}
- Run
npx prisma generate
to trigger the generator. This will create acore-temp
folder insrc
You can specify the out of the core using the output property
generator core {
provider = "node node_modules/my-prisma-core-generator"
output = "../../core"
}