[typespec-ts] Sync tsconfig.src include with warp exports for multi-client packages#4872
Draft
kazrael2119 with Copilot wants to merge 2 commits into
Draft
[typespec-ts] Sync tsconfig.src include with warp exports for multi-client packages#4872kazrael2119 with Copilot wants to merge 2 commits into
kazrael2119 with Copilot wants to merge 2 commits into
Conversation
…ti-client Co-authored-by: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix build failure for multi-client packages in typespec-ts
[typespec-ts] Sync tsconfig.src include with warp exports for multi-client packages
Jul 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Multi-client packages failed to build with
DIST_MISSING: the generatedconfig/tsconfig.src.*.jsonfiles hardcodedinclude: ["../src/index.ts"], whilewarp.config.ymlexported every client's entry point as a separate subpath (./devCenter→./src/devCenter/index.ts). Since the rootsrc/index.tsimports the deeper client/api files directly instead of re-exporting the per-client barrels, TypeScript never emitted those barrels todist, and warp's export validation failed.Changes
build-ts-config.ts: NewgetSrcIncludePaths(exports)derives theincludelist from the sameexportsmap that driveswarp.config.yml— mapping./src/...→../src/..., dropping non-.tsvalues (e.g.package.json), de-duplicating, and always keeping../src/index.tsas fallback. The fourbuildTsSrc{Esm,Browser,ReactNative,Cjs}Configbuilders now takeexports.index.ts: ThreadsmodularPackageInfo.exportsinto thebuildTsSrc*Configbuilders in both the initial-generation and update/migration paths, keeping the tsconfig inputs and warp exports in sync.test-next/unit/metadata/ts-config.test.tscovering default fallback, multi-client sync, non-.tsfiltering, de-duplication, and per-target propagation.For the multi-client example in the issue, the emitted configs now include every exported barrel: