Skip to content

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

Open
cyphercodes wants to merge 1 commit into
angular:mainfrom
cyphercodes:fix/remove-app-tsconfig-outdir
Open

fix(@schematics/angular): remove unused app tsconfig outDir#33366
cyphercodes wants to merge 1 commit into
angular:mainfrom
cyphercodes:fix/remove-app-tsconfig-outdir

Conversation

@cyphercodes

Copy link
Copy Markdown

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.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TS linting error regarding outDir in tsconfig.app.json

1 participant