⚠ This page is served via a proxy. Original site: https://github.com
This service does not collect credentials or authentication data.
Skip to content

Conversation

@glecaros
Copy link
Member

This pull request addresses an issue with the handling of the --ignore-deprecated CLI flag in the TypeSpec compiler. The main changes ensure that the flag is correctly recognized and resolved in the compiler options, and adds a corresponding test to verify this behavior.

CLI flag handling:

  • Updated the getCompilerOptions function in args.ts to properly map the --ignore-deprecated argument to the ignoreDeprecated compiler option.

Testing:

  • Added a unit test in cli.test.ts to verify that the --ignore-deprecated flag is correctly resolved in compiler options.

Documentation/Changelog:

  • Added a changelog entry documenting the fix for resolving the ignore-deprecated flag. (.chronus/changes/glecaros-ignore-deprecated-2026-0-13-6-14-22.md)

@pkg-pr-new
Copy link

pkg-pr-new bot commented Jan 13, 2026

Open in StackBlitz

npm i https://pkg.pr.new/microsoft/typespec/@typespec/compiler@9342

commit: 742e1ec

@github-actions
Copy link
Contributor

github-actions bot commented Jan 13, 2026

All changed packages have been documented.

  • @typespec/compiler
Show changes

@typespec/compiler - fix ✏️

Ensuring ignore-deprecated gets resolved.

@glecaros glecaros marked this pull request as draft January 13, 2026 06:28
@azure-sdk
Copy link
Collaborator

azure-sdk commented Jan 13, 2026

You can try these changes here

🛝 Playground 🌐 Website 🛝 VSCode Extension

@glecaros glecaros marked this pull request as ready for review January 13, 2026 07:00
@timotheeguerin timotheeguerin added this pull request to the merge queue Jan 15, 2026
Merged via the queue into main with commit 0e3d0b9 Jan 15, 2026
27 checks passed
@timotheeguerin timotheeguerin deleted the glecaros/ignore-deprecated branch January 15, 2026 18:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

compiler:core Issues for @typespec/compiler

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants