v2.2.0
breaking changes
- delete
schemaFolder
option frompal.js
and now we use the same way of prisma CLI
pal g --schema=./alternative/schema.prisma
- delete
prismaClientPath
option because now we usegetDMMF
from@prisma/sdk
package and all we need nowschemaPath
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();