paljs / prisma-tools

Prisma tools to help you generate CRUD system for GraphQL servers
https://paljs.com
MIT License
684 stars 54 forks source link

New features ,I need to customize the 'prisma/client' directory #126

Closed kringt06 closed 4 years ago

kringt06 commented 4 years ago

@paljs/generator - New features

Can add a new configuration?To set the "prisma/Client" directory.

// Generators.ts

  protected async dmmf() {
    const { dmmf } = await import(
      join(projectRoot, 'node_modules', '@prisma/client') // --->>>   customize path
    );
    return dmmf;
  }
AhmedElywa commented 4 years ago

Yes, It's a good idea

AhmedElywa commented 4 years ago

Use last version 1.2.8