fix(angular): emit typescript declaration diagnostics in ng-packagr executors (#11927)

This commit is contained in:
Leosvel Pérez Espinosa 2022-09-09 11:30:28 +01:00 committed by GitHub
parent 308effab15
commit c6520a1496
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -154,6 +154,7 @@ export async function compileSourceFiles(
for (const sourceFile of builder.getSourceFiles()) {
if (!ignoreForDiagnostics.has(sourceFile)) {
allDiagnostics.push(
...builder.getDeclarationDiagnostics(sourceFile),
...builder.getSyntacticDiagnostics(sourceFile),
...builder.getSemanticDiagnostics(sourceFile)
);

View File

@ -151,6 +151,7 @@ export async function compileSourceFiles(
for (const sourceFile of builder.getSourceFiles()) {
if (!ignoreForDiagnostics.has(sourceFile)) {
allDiagnostics.push(
...builder.getDeclarationDiagnostics(sourceFile),
...builder.getSyntacticDiagnostics(sourceFile),
...builder.getSemanticDiagnostics(sourceFile)
);