Skip to content

fix(@schematics/angular): remove unused app tsconfig outDir#33366

Merged
alan-agius4 merged 1 commit into
angular:mainfrom
cyphercodes:fix/remove-app-tsconfig-outdir
Jun 30, 2026
Merged

fix(@schematics/angular): remove unused app tsconfig outDir#33366
alan-agius4 merged 1 commit into
angular:mainfrom
cyphercodes:fix/remove-app-tsconfig-outdir

Conversation

@cyphercodes

Copy link
Copy Markdown
Contributor

PR Checklist

Please check to confirm your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Documentation content changes
  • Other... Please describe:

What is the current behavior?

New applications generated by the application schematic include an outDir entry in tsconfig.app.json. This can cause a TypeScript configuration lint warning for projects generated by ng new.

Issue Number: Fixes #33360

What is the new behavior?

Generated application tsconfig.app.json files no longer include the unused outDir compiler option.

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

Docs are not updated because this only removes an unused generated TypeScript compiler option.

Verification:

  • pnpm exec bazelisk test //packages/schematics/angular:test --test_output=errors
  • git diff --check

@gemini-code-assist gemini-code-assist Bot 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.

Code Review

This pull request removes the outDir compiler option from the tsconfig.app.json.template file used in the Angular application schematic. It also updates the corresponding unit tests in index_spec.ts to assert that compilerOptions.outDir is undefined. There are no review comments, so I have no feedback to provide.

@alan-agius4 alan-agius4 added target: patch This PR is targeted for the next patch release action: merge The PR is ready for merge by the caretaker labels Jun 30, 2026
@alan-agius4 alan-agius4 merged commit 0b3172e into angular:main Jun 30, 2026
16 of 17 checks passed
@alan-agius4

Copy link
Copy Markdown
Collaborator

This PR was merged into the repository. The changes were merged into the following branches:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

action: merge The PR is ready for merge by the caretaker area: @schematics/angular target: patch This PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TS linting error regarding outDir in tsconfig.app.json

2 participants