2016-06-23 16:47:54 +00:00
|
|
|
/**
|
|
|
|
|
* @license
|
2020-05-19 19:08:49 +00:00
|
|
|
* Copyright Google LLC All Rights Reserved.
|
2016-06-23 16:47:54 +00:00
|
|
|
*
|
|
|
|
|
* Use of this source code is governed by an MIT-style license that can be
|
2024-09-20 15:23:15 +00:00
|
|
|
* found in the LICENSE file at https://angular.dev/license
|
2016-06-23 16:47:54 +00:00
|
|
|
*/
|
2019-06-06 19:22:32 +00:00
|
|
|
import {NodeJSFileSystem, setFileSystem} from './src/ngtsc/file_system';
|
|
|
|
|
|
2017-09-13 23:55:42 +00:00
|
|
|
export {VERSION} from './src/version';
|
2016-12-14 01:35:06 +00:00
|
|
|
|
2024-07-08 12:50:38 +00:00
|
|
|
export * from './src/ngtsc/transform/jit';
|
2017-06-09 21:50:57 +00:00
|
|
|
export * from './src/transformers/api';
|
|
|
|
|
export * from './src/transformers/entry_points';
|
|
|
|
|
|
2017-08-31 17:02:27 +00:00
|
|
|
export * from './src/perform_compile';
|
2017-06-09 21:50:57 +00:00
|
|
|
|
2019-10-17 15:36:04 +00:00
|
|
|
// TODO(tbosch): remove this once usages in G3 are changed to `CompilerOptions`
|
2017-09-13 23:55:42 +00:00
|
|
|
export {CompilerOptions as AngularCompilerOptions} from './src/transformers/api';
|
2017-11-02 21:49:38 +00:00
|
|
|
|
2021-09-18 16:01:08 +00:00
|
|
|
// Internal exports needed for packages relying on the compiler-cli.
|
2021-09-30 17:37:11 +00:00
|
|
|
// TODO: Remove this when the CLI has switched to the private entry-point.
|
|
|
|
|
export * from './private/tooling';
|
2021-09-18 16:01:08 +00:00
|
|
|
|
2021-09-20 17:30:08 +00:00
|
|
|
// Exposed as they are needed for relying on the `linker`.
|
|
|
|
|
export * from './src/ngtsc/logging';
|
|
|
|
|
export * from './src/ngtsc/file_system';
|
|
|
|
|
|
|
|
|
|
// Exports for dealing with the `ngtsc` program.
|
2023-01-27 23:01:46 +00:00
|
|
|
export {NgTscPlugin, PluginCompilerHost} from './src/ngtsc/tsc_plugin';
|
2021-09-20 17:30:08 +00:00
|
|
|
export {NgtscProgram} from './src/ngtsc/program';
|
|
|
|
|
export {OptimizeFor} from './src/ngtsc/typecheck/api';
|
|
|
|
|
|
2021-12-15 15:22:01 +00:00
|
|
|
// **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';
|
2025-10-27 18:21:20 +00:00
|
|
|
export {
|
|
|
|
|
NodeJSFileSystem,
|
|
|
|
|
absoluteFrom,
|
|
|
|
|
FileSystem,
|
|
|
|
|
AbsoluteFsPath,
|
|
|
|
|
NgtscCompilerHost,
|
|
|
|
|
getFileSystem,
|
|
|
|
|
setFileSystem,
|
|
|
|
|
isLocalRelativePath,
|
|
|
|
|
} from './src/ngtsc/file_system';
|
2021-12-15 15:22:01 +00:00
|
|
|
|
2023-09-19 21:43:04 +00:00
|
|
|
// Export documentation entities for Angular-internal API doc generation.
|
2024-03-18 13:11:30 +00:00
|
|
|
export * from './src/ngtsc/docs';
|
2023-09-19 21:43:04 +00:00
|
|
|
|
2024-02-09 16:24:04 +00:00
|
|
|
// Exposed for usage in 1P Angular plugin.
|
2025-01-02 12:28:03 +00:00
|
|
|
export {isLocalCompilationDiagnostics, ErrorCode, ngErrorCode} from './src/ngtsc/diagnostics';
|
2024-02-09 16:24:04 +00:00
|
|
|
|
2019-06-06 19:22:32 +00:00
|
|
|
setFileSystem(new NodeJSFileSystem());
|