MichalLytek / MichalLytek/typegraphql-prisma

Make output file names configurable

Open
#132 1 comment 0 reactions 0 assignees View on GitHub
enhancement priority:low
Dominant language
TypeScript
Stars
918
Forks
130
PR merge metrics
No merged PRs in 30d

Description

I think making the output file pattern somewhat configurable makes sense. I would like the generated files for example to be named like `{model}.model.ts` instead of just `{model}.ts`.

Maybe like they do it [here](https://github.com/unlight/prisma-nestjs-graphql#outputfilepattern)?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the generator logic that determines emitted file names and compare the requested pattern with the linked prisma-nestjs-graphql example. Define how a configurable output pattern should be supplied and applied consistently; done means generated files can use names such as `{model}.model.ts` instead of `{model}.ts`.

Written by the indexing model from the issue text.

Assessment

Tech stack
graphql, typescript
Domain
tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.