Skip to content

Make bundled/lib the canonical lib file source - #63993

Merged
Jake Bailey (jakebailey) merged 1 commit into
microsoft:mainfrom
jakebailey:lib-cleanup
Aug 25, 2026
Merged

Make bundled/lib the canonical lib file source#63993
Jake Bailey (jakebailey) merged 1 commit into
microsoft:mainfrom
jakebailey:lib-cleanup

Conversation

@jakebailey

@jakebailey Jake Bailey (jakebailey) commented Aug 25, 2026

Copy link
Copy Markdown
Member

There's no reason to generate these files anymore, it's easier to just have them be their own sources and include them, then check that they're formatted right.

Unfortunately, this means no .generated.d.ts in the filename, I feel like that's fine. I'll update the flow that checks the modified files separately, or not at all.

That and DOM lib generator's migration script needs to do a rename now.

Copilot AI balanced review requested due to automatic review settings August 25, 2026 00:12
@github-project-automation github-project-automation Bot moved this to Not started in PR Backlog Aug 25, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Makes tsc/internal/bundled/libs the canonical source for TypeScript’s bundled declaration files.

Changes:

  • Removes the intermediate source generation pipeline.
  • Derives embedded lib metadata directly from canonical files.
  • Adds header and line-ending validation.

Reviewed changes

Copilot reviewed 3 out of 113 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
tsc/internal/bundled/generate.go Reads, validates, and embeds canonical libs.
tsc/internal/bundled/README.md Documents the new layout.
tsc/internal/bundled/CopyrightNotice.txt Relocates the shared header.
tsc/internal/bundled/libs/*.d.ts Adds 108 canonical library sources.
tsc/internal/bundled/source/libs.json Removes obsolete generation metadata.
tsc/internal/bundled/source/CopyrightNotice.txt Removes the former header source.
tsc/internal/bundled/source/*.d.ts Removes obsolete intermediate declarations.
Files not reviewed (1)
  • tsc/internal/bundled/generate.go: Generated file

💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.

Comment thread tsc/internal/bundled/generate.go
Comment thread tsc/internal/bundled/generate.go
@github-project-automation github-project-automation Bot moved this from Not started to Needs merge in PR Backlog Aug 25, 2026
@jakebailey
Jake Bailey (jakebailey) added this pull request to the merge queue Aug 25, 2026
Merged via the queue into microsoft:main with commit 9441c01 Aug 25, 2026
25 checks passed
@jakebailey
Jake Bailey (jakebailey) deleted the lib-cleanup branch August 25, 2026 22:33
@github-project-automation github-project-automation Bot moved this from Needs merge to Done in PR Backlog Aug 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants