Skip to content

v2.2.0

Compare
Choose a tag to compare
@AhmedElywa AhmedElywa released this 03 Oct 23:09

breaking changes

  • delete schemaFolder option from pal.js and now we use the same way of prisma CLI
pal g --schema=./alternative/schema.prisma

https://pris.ly/d/prisma-schema-location

  • delete prismaClientPath option because now we use getDMMF from @prisma/sdk package and all we need now schemaPath

Generator Class

If you use our Generator class his args had changed

old

import { Generator } from '@paljs/generator';

new Generator('nexus', {}).run();

new

import { Generator } from '@paljs/generator';

new Generator({name: 'nexus', schemaPath: './prisma/schema.prisma'}, {}).run();