Skip to content

fix(compiler-cli): exclude output directories from hybrid preprocessor tsconfig globs - #71802

Open
atscott wants to merge 1 commit into
angular:mainfrom
atscott:ngp-exclude-output-dirs
Open

atscott wants to merge 1 commit into
angular:mainfrom
atscott:ngp-exclude-output-dirs

Conversation

@atscott

@atscott atscott commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

When a tsconfig has no exclude (including through extends), TypeScript skips outDir and declarationDir while expanding include globs. ng-analyze didn't, so emitted .d.ts and .js files inside the project could get picked up as sources.

This only adds the output directories when exclude is absent, same as TypeScript. oxc already resolves both options relative to the config that sets them, so the comparison is a path prefix check. An explicit exclude is left alone.

…r tsconfig globs

When a tsconfig has no `exclude`, TypeScript skips `outDir` and `declarationDir` while expanding `include` globs. ng-analyze didn't, so emitted `.d.ts` and `.js` files inside the project could be picked up as sources.
@angular-robot angular-robot Bot added the area: compiler Issues related to `ngc`, Angular's template compiler label Nov 3, 2026
@ngbot ngbot Bot added this to the Backlog milestone Nov 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: compiler Issues related to `ngc`, Angular's template compiler

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant