Kalissaac / prisma-typegen

Generates full types (including relations) for TypeScript from a Prisma schema
MIT License
16 stars 5 forks source link

How can I change the name of the file? #4

Closed eddyhdzg closed 2 years ago

eddyhdzg commented 2 years ago

The name of the file is "index.ts" by default, can it have another name?

Kalissaac commented 2 years ago

Completed in v0.0.7 (https://github.com/Kalissaac/prisma-typegen/commit/c502bd1fda55b64032cc86411724983d889356c6)

You can now specify the entire file path to choose a different file name:

$ npx @kalissaac/prisma-typegen ./interfaces/prismaTypes.ts ./schema.prisma