types condition in package.json exports should come first according to the Node.js specification

Aperta
#17,029 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

  • #17004 di @alexicum — chiusa senza merge
  • #17109 di @saiv0n — chiusa senza merge

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
57/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
json, node.js, typescript
Ambito
build-system

Direzione di ricerca

Start with the listed package.json exports in autoconfig, containers-shared, deploy-helpers, shared-ast-primitives, workers-auth, and workers-utils. Read the Node.js community conditions guidance linked in the issue, then check the package exports for the ordering of the "types" condition. Done means each applicable exports condition places "types" first.

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

Descrizione

package:containers-shared package:deploy-helpers package:workers-auth package:workers-utils

[autoconfig,containers-shared,deploy-helpers,shared-ast-primitives,workers-auth,workers-utils]

I have a ready PR (#17004) fixing this issue:

  • Places the types condition first in package.json exports across all six affected packages.
  • Sets "platform": "browser" for browser.ts and prometheus-metrics.ts in packages/workers-utils/tsdown.config.ts to keep them free of Node.js shims.

"types" - can be used by typing systems to resolve the typing file for the given export. This condition should always be included first.

All local checks (oxfmt, check:private-packages, check:fixtures, and package builds) pass.

Could a maintainer please add me as a registered contributor (in .github/VOUCHED.td) and reopen PR #17004 for review? Thanks!

Lingua principale
TypeScript
Stelle
4.7k
Fork
1.7k
Merge medio
1g 22h
PR unite (30g)
282

Preparare l'ambiente

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 cloudflare/workers-sdk

Tutte le issue di cloudflare/workers-sdk

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.