Commit 0675e2c
committed
minor #34 [Package] Expose per-entry types through the exports map (Kocal)
This PR was merged into the main branch.
Discussion
----------
[Package] Expose per-entry types through the exports map
| Q | A
| -------------- | ---
| Bug fix? | no
| New feature? | no
| Deprecations? | no
| Documentation? | no
| Issues | -
| License | MIT
``@symfony`/reprise` exposed its type declarations through a `typesVersions` wildcard plus bare-string `exports` entries. This PR gives each `exports` entry explicit `types` and `default` conditions, the mechanism `node16`/`nodenext`/`bundler` module resolution actually reads, and drops the `typesVersions` hack.
All five subpath entries (`.`, `./rsbuild`, `./stimulus`, `./types`, `./vite`) now resolve to their generated `.d.mts`. The top-level `types` field is kept as a fallback.
Commits
-------
83faa50 [Package] Expose per-entry types through the exports map1 file changed
Lines changed: 20 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
33 | 48 | | |
34 | 49 | | |
35 | 50 | | |
36 | 51 | | |
37 | 52 | | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | 53 | | |
47 | 54 | | |
48 | 55 | | |
| |||
0 commit comments