Skip to content

Load TypeScript pull request builds in Playground v2 - #3697

Merged
Jake Bailey (jakebailey) merged 1 commit into
microsoft:v2from
jakebailey:playground-pr-builds
Nov 9, 2026
Merged

Jake Bailey (jakebailey) merged 1 commit into
microsoft:v2from
jakebailey:playground-pr-builds

Conversation

@jakebailey

Copy link
Copy Markdown
Member

TS PR builds are now published to npm as @typescript-deploys/pr-build with versions like 7.1.0-pr.<PR>.<build>; support them.

Goes with microsoft/TypeScript#65406

PR builds of microsoft/TypeScript are now published to npm as
@typescript-deploys/pr-build with versions like 7.1.0-pr.<PR>.<build>,
so that the bot can link a ?ts=<version> Playground URL for them. They
are not published under the typescript name, so the Playground must
fetch them from the @typescript-deploys packages instead.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

There are no active review issues for the TypeScript PR-build loading changes.

No open issues 🎉

What changed in this PR

Adds support for loading TypeScript pull request builds in Playground v2 from the new @typescript-deploys npm packages.

Changes:

  • Recognizes 7.1.0-pr.<PR>.<build>-style versions as WebAssembly compiler builds.
  • Routes PR builds to their dedicated API and WebAssembly packages.
  • Adds tests for version classification and PR-build distribution URLs.
File Description
packages/​playground-v2/​src/​native-compiler.test.ts Tests PR-version recognition and loading from dedicated packages.
packages/​playground-v2/​src/​compiler-versions.ts Detects PR-build versions and classifies them as WebAssembly-compatible.
packages/​playground-v2/​src/​compiler-distribution.ts Selects the PR-build packages when loading a PR version.

Review effort: Balanced

@jakebailey
Jake Bailey (jakebailey) merged commit a93dd41 into microsoft:v2 Nov 9, 2026
9 checks passed
@jakebailey
Jake Bailey (jakebailey) deleted the playground-pr-builds branch November 9, 2026 20:39
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.

3 participants