Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Exact typescript version causes installed package size to be very large

Aperta
#126 1 commento 1 reazione 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
35/100
Tipo di issue
Refactoring
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
typescript
Ambito
tooling

Direzione di ricerca

Start by reviewing the dependency declarations in the repository's package.json and PR #89, then inspect why separate copies appear under node_modules/@openapi-codegen/typescript and node_modules/@openapi-codegen/cli. Done means confirming that a looser TypeScript range works for the project and avoids unnecessary duplicate installations without breaking the existing package behavior.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

In https://github.com/fabien0102/openapi-codegen/pull/89 it looks like the typescript version was bumped from "^4.6.2" to an exact version ("4.8.2"). It's unclear from the PR whether openapi-codegen requires that specific version of typescript but I suspect it does not.

The typescript package is ~65MB, and we now have three copies of it in our node_modules - one from our own package.json, one under node_modules/@openapi-codegen/typescript/node_modules, and one under node_modules/@openapi-codegen/cli/node_modules.

Would it be possible to relax the typescript dependency version to be looser, making it less likely that we'll end up with multiple copies of this package installed?

Lingua principale
TypeScript
Stelle
634
Fork
83
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di fabien0102/openapi-codegen

Tutte le issue di fabien0102/openapi-codegen

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.