MichalLytek / MichalLytek/typegraphql-prisma

Generate only imports which will be used

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

Description

**Is your feature request related to a problem? Please describe.**
Currently generated files often have imports that are not used anywhere
![image](https://user-images.githubusercontent.com/1305378/129638919-859d58cd-e4b5-4da0-8d40-83404e1cb032.png)

**Describe the solution you'd like**
Unused import would be stripped/never even generated

**Describe alternatives you've considered**
stripping it myself using eslint

**Additional context**

Contributor guide

No contributing guide indexed for this repository

Research direction

No source files, tests, or entry points are named. Start by reproducing the generated output shown in the issue and tracing which generator path produces its imports; done means generated files contain no imports that are unused.

Written by the indexing model from the issue text.

Assessment

Tech stack
graphql, typescript
Domain
backend-api-design, tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.