UNPKG

1.05 kBTypeScriptView Raw
1import type { ParsedConfiguration } from '@angular/compiler-cli';
2import { EntryPointNode } from '../ng-package/nodes';
3export declare const defaultTsConfigPath: string;
4/**
5 * Initializes TypeScript Compiler options and Angular Compiler options by overriding the
6 * default config with entry point-specific values.
7 */
8export declare function initializeTsConfig(defaultTsConfig: ParsedConfiguration | string | undefined, entryPoints: EntryPointNode[]): Promise<void>;
9/**
10 * Set the paths for entrypoint dependencies.
11 *
12 * This doesn't mutate the object.
13 *
14 * @param parsedTsConfig - A parsed tsconfig
15 * @param entryPoints - A list of entryPoints
16 * @param pointToSource Point the path mapping to either the source code or emitted declarations.
17 * Typically for analysis one should point to the source files while for a compilation once should use the emitted declarations
18 */
19export declare function setDependenciesTsConfigPaths(parsedTsConfig: ParsedConfiguration, entryPoints: EntryPointNode[], pointToSource?: boolean): ParsedConfiguration;