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

dd the types condition to the package.json#exports for TS 4.7+

Aperta
#4,333 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
52/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Stack tecnologico
javascript, typescript

Direzione di ricerca

Inizia da package.json e analizza le voci exports esistenti per i componenti inclusi. Verifica come TypeScript 4.7+ risolve tali voci con node16, nodenext e bundler come moduleResolution; il lavoro è completato quando i componenti esportati pertinenti espongono i relativi tipi senza patch-package e i consumer esistenti del pacchetto continuano a essere risolti correttamente.

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

Descrizione

Today I used patch-package to patch framework7@7.1.5 for the project I'm working on.

This is required for TypeScript to work with packages that have exports when using the new moduleResolution: node16/nodenext/bundler settings. When those are not used then TypeScript just ignores package.json#exports - but when you make it aware of exports by using those options then it requires the types to be included in exports and not as the top-level key of package.json

I'm not sure if there is a more elegant way to specify the exports - especially since there are so many listed in the package.json file. I just augmented the ones for the bundled components.

Lingua principale
JavaScript
Stelle
18.8k
Fork
3.2k
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Guida per i contributori

Apri la guida per i contributori

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 framework7io/framework7

Tutte le issue di framework7io/framework7

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.