/
githubmirror
/
angular
Обзор
Документация
Войти
/
githubmirror
/
angular
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
packages/compiler-cli/index.ts
99 строк
3 KB
Alex Rickabaugh
refactor: add g3-only and 3p-only markers to replace specific g3 patches
27 май 2026, 02:09
27 май 2026, 02:09
4f9ee3c
Код
Авторство
О чём код?
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {NodeJSFileSystem, setFileSystem} from './src/ngtsc/file_system'; export {VERSION} from './src/version'; export * from './src/ngtsc/transform/jit'; export * from './src/transformers/api'; export * from './src/transformers/entry_points'; export * from './src/perform_compile'; // TODO(tbosch): remove this once usages in G3 are changed to `CompilerOptions` export {CompilerOptions as AngularCompilerOptions} from './src/transformers/api'; // 3p-only-start // Internal exports needed for packages relying on the compiler-cli. // 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'; // 3p-only-end // Exports for dealing with the `ngtsc` program. export {NgTscPlugin, PluginCompilerHost} from './src/ngtsc/tsc_plugin'; export {NgtscProgram} from './src/ngtsc/program'; export {OptimizeFor} from './src/ngtsc/typecheck/api'; // Explicit exports for language service export {getAngularDecorators} from './src/ngtsc/annotations'; export { NgCompiler, type NgCompilerOptions, type CompilationTicket, freshCompilationTicket, incrementalFromCompilerTicket, resourceChangeTicket, } from './src/ngtsc/core'; export {type NgCompilerAdapter} from './src/ngtsc/core/api'; export {Reference} from './src/ngtsc/imports'; export { type DirectiveMeta, type InputMapping, isExternalResource, MetaKind, type PipeMeta, type Resource, } from './src/ngtsc/metadata'; export { type DeclarationNode, isNamedClassDeclaration, type ReflectionHost, type ClassDeclaration, } from './src/ngtsc/reflection'; export {isFatalDiagnosticError} from './src/ngtsc/diagnostics'; export {PerfPhase} from './src/ngtsc/perf'; export {type FileUpdate, InliningMode, type ProgramDriver} from './src/ngtsc/program_driver'; export {TrackedIncrementalBuildStrategy} from './src/ngtsc/incremental'; export {isShim} from './src/ngtsc/shims'; export {getRootDirs} from './src/ngtsc/util/src/typescript'; export * from './src/ngtsc/typecheck/api'; // **Note**: Explicit named exports to make this file work with CJS/ESM interop without // needing to use a default import. NodeJS will expose named CJS exports as named ESM exports. // TODO(devversion): Remove these duplicate exports once devmode&prodmode is combined/ESM. export {ConsoleLogger, Logger, LogLevel} from './src/ngtsc/logging'; export { NodeJSFileSystem, absoluteFrom, absoluteFromSourceFile, resolve, type FileStats, type PathSegment, type PathString, getSourceFileOrError, type FileSystem, type AbsoluteFsPath, NgtscCompilerHost, getFileSystem, setFileSystem, isLocalRelativePath, } from './src/ngtsc/file_system'; // Export documentation entities for Angular-internal API doc generation. export * from './src/ngtsc/docs'; // Exposed for usage in 1P Angular plugin. export {isLocalCompilationDiagnostics, ErrorCode, ngErrorCode} from './src/ngtsc/diagnostics'; setFileSystem(new NodeJSFileSystem());