From ba1508886dc7233cc58770e2180b36cf054856dc Mon Sep 17 00:00:00 2001 From: Andrew Scott Date: Tue, 10 Mar 2026 09:54:09 -0700 Subject: [PATCH] refactor(compiler-cli): Export hybrid_analysis symbols Export symbols from hybrid_analysis from entrypoint --- .ng-dev/google-sync-config.json | 1 + packages/compiler-cli/index.ts | 2 ++ packages/compiler-cli/private/hybrid_analysis.ts | 2 +- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.ng-dev/google-sync-config.json b/.ng-dev/google-sync-config.json index 7262e9fbf0d..a779d65d812 100644 --- a/.ng-dev/google-sync-config.json +++ b/.ng-dev/google-sync-config.json @@ -10,6 +10,7 @@ "packages/compiler-cli/private/bazel.ts", "packages/compiler-cli/private/localize.ts", "packages/compiler-cli/private/tooling.ts", + "packages/compiler-cli/private/hybrid_analysis.ts", "packages/compiler-cli/private/babel.d.ts", "packages/compiler-cli/src/bin/**", "packages/core/schematics/utils/tsurge/helpers/angular_devkit/**", diff --git a/packages/compiler-cli/index.ts b/packages/compiler-cli/index.ts index 738e5a65e93..aa2b4da3534 100644 --- a/packages/compiler-cli/index.ts +++ b/packages/compiler-cli/index.ts @@ -22,6 +22,8 @@ export {CompilerOptions as AngularCompilerOptions} from './src/transformers/api' // TODO: Remove this when the CLI has switched to the private entry-point. export * from './private/tooling'; +export * from './private/hybrid_analysis'; + // Exposed as they are needed for relying on the `linker`. export * from './src/ngtsc/logging'; export * from './src/ngtsc/file_system'; diff --git a/packages/compiler-cli/private/hybrid_analysis.ts b/packages/compiler-cli/private/hybrid_analysis.ts index cf9f7c98a98..d8ef033fbc4 100644 --- a/packages/compiler-cli/private/hybrid_analysis.ts +++ b/packages/compiler-cli/private/hybrid_analysis.ts @@ -21,7 +21,7 @@ export type { } from '../src/ngtsc/typecheck/api'; export {DomSchemaChecker, RegistryDomSchemaChecker} from '../src/ngtsc/typecheck/src/dom'; export {Environment} from '../src/ngtsc/typecheck/src/environment'; -export type {OutOfBandDiagnosticRecorder} from '../src/ngtsc/typecheck/src/oob'; +export {OutOfBandDiagnosticRecorder} from '../src/ngtsc/typecheck/src/oob'; export {TcbGenericContextBehavior} from '../src/ngtsc/typecheck/src/ops/context'; export {ImportManager} from '../src/ngtsc/translator'; export type {ReferenceEmitter} from '../src/ngtsc/imports';