Skip to content

Deprecate --outFile - #62981

Merged
Ryan Cavanaugh (RyanCavanaugh) merged 4 commits into
microsoft:mainfrom
RyanCavanaugh:deprecateOutFile2
Jan 13, 2026
Merged

Deprecate --outFile#62981
Ryan Cavanaugh (RyanCavanaugh) merged 4 commits into
microsoft:mainfrom
RyanCavanaugh:deprecateOutFile2

Conversation

@RyanCavanaugh

Copy link
Copy Markdown
Member

Fixes#62980

CopilotAI 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

This pull request deprecates the --outFile compiler option in TypeScript, aligning with the broader effort to phase out legacy module bundling features in favor of modern bundlers.

Changes:

  • Added deprecation error TS5101 for the --outFile option across the compiler test suite
  • Updated baseline files to reflect the new deprecation warning in error outputs

Reviewed changes

Copilot reviewed 300 out of 534 changed files in this pull request and generated no comments.

FileDescription
All .errors.txt files in tests/baselines/reference/Updated baseline error outputs to include TS5101 deprecation warning for --outFile option
outFileIsDeprecated.types, outFileIsDeprecated.symbols, outFileIsDeprecated.jsNew baseline files for test validating the deprecation warning
multipleDeclarations.types, methodsReturningThis.types, jsdocReadonlyDeclarations.types, etc.Minor formatting changes in type baseline files (additional line number annotations)

@jakebailey

Copy link
Copy Markdown
Member

I will dare

TypeScript Bot (@typescript-bot) user test this
TypeScript Bot (@typescript-bot) test top800

@typescript-bot

TypeScript Bot (typescript-bot) commented Jan 13, 2026

Copy link
Copy Markdown
Contributor

Starting jobs; this comment will be updated as builds start and complete.

CommandStatusResults
user test this✅ Started✅ Results
test top800✅ Started✅ Results

@typescript-bot

Copy link
Copy Markdown
Contributor

Jake Bailey (@jakebailey) Here are the results of running the user tests with tsc comparing main and refs/pull/62981/merge:

There were infrastructure failures potentially unrelated to your change:

  • 1 instance of "Package install failed"
  • 1 instance of "Git clone failed"

Otherwise...

Everything looks good!

@typescript-bot

Copy link
Copy Markdown
Contributor

Jake Bailey (@jakebailey) Here are the results of running the top 800 repos with tsc comparing main and refs/pull/62981/merge:

Everything looks good!

@github-project-automationgithub-project-automationBot moved this from Not started to Needs merge in PR BacklogJan 13, 2026
Merged via the queue into microsoft:main with commit 631affdJan 13, 2026
33 checks passed
@RyanCavanaugh
Ryan Cavanaugh (RyanCavanaugh) deleted the deprecateOutFile2 branch January 13, 2026 20:50
@github-project-automationgithub-project-automationBot moved this from Needs merge to Done in PR BacklogJan 13, 2026
@jakebaileyJake Bailey (jakebailey) added the Breaking Change Would introduce errors in existing code label Jan 31, 2026
@microsoftMicrosoft (microsoft) locked as resolved and limited conversation to collaborators Jul 30, 2026
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Author: TeamBreaking ChangeWould introduce errors in existing codeFor Milestone BugPRs that fix a bug with a specific milestone

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Deprecate, remove --outFile

6 participants

@RyanCavanaugh@jakebailey@typescript-bot@sheetalkamat@andrewbranch