Skip to content

fix(web): typescript config - resolve library types without host compiler overrides - #869

Merged
mnoah1 merged 1 commit into
mainfrom
mnoah1/web-legacy-type-resolution
Oct 14, 2026
Merged

mnoah1 merged 1 commit into
mainfrom
mnoah1/web-legacy-type-resolution

Conversation

@mnoah1

@mnoah1 mnoah1 commented Oct 14, 2026

Copy link
Copy Markdown
Contributor

Why

The web libraries expose their declarations through exports. TypeScript's legacy node resolver does not read that field, so hosts using it cannot resolve the public imports without changing their compiler configuration.

Change

Add a top-level types entry and explicit typesVersions mappings for the public JavaScript subpaths in platform, Stovepipe, and SubmitQueue. Keep the existing exports, ESM output, and browser/server boundaries unchanged. This adds declaration resolution support, not CommonJS support.

Use the same packaged consumer fixture to check every public JavaScript entry point with both node and bundler resolution. Run the new legacy-resolver check in the normal web test suite.

Test plan

  • make web-check (includes both consumer typechecks, package contents, Node runtime, and React 18 rendering checks)
  • make fmt, make lint, make check-tidy, make check-gazelle

@mnoah1
mnoah1 requested review from a team, behinddwalls and sbalabanov as code owners October 14, 2026 20:11
@mnoah1
mnoah1 enabled auto-merge October 14, 2026 20:14
@mnoah1 mnoah1 changed the title fix(web): resolve library types without host compiler overrides fix(web): typescript config - resolve library types without host compiler overrides Oct 14, 2026
@mnoah1
mnoah1 added this pull request to the merge queue Oct 14, 2026
Merged via the queue into main with commit 8b8c279 Oct 14, 2026
19 checks passed
@mnoah1
mnoah1 deleted the mnoah1/web-legacy-type-resolution branch October 14, 2026 20:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants