Commit 81a466d
fix(core): Include subpath type shims in published package
The `browser.d.ts` and `server.d.ts` root-level shims were missing from
the `files` list, so TypeScript compilers using `moduleResolution: "node"`
(which don't support the `exports` field) couldn't resolve
`@sentry/core/browser` or `@sentry/core/server` types. This broke
downstream consumers like `@sentry/react-native`.
Also adds `typesVersions` entries for the browser/server subpaths to
support TypeScript < 5.0.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 28d6fe5 commit 81a466d
3 files changed
Lines changed: 17 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
16 | 18 | | |
17 | 19 | | |
18 | 20 | | |
| |||
54 | 56 | | |
55 | 57 | | |
56 | 58 | | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
57 | 65 | | |
58 | 66 | | |
59 | 67 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
0 commit comments