[6a3a178] | 1 | /// <amd-module name="@angular/compiler-cli/ngcc/src/entry_point_finder/directory_walker_entry_point_finder" />
|
---|
| 2 | /**
|
---|
| 3 | * @license
|
---|
| 4 | * Copyright Google LLC All Rights Reserved.
|
---|
| 5 | *
|
---|
| 6 | * Use of this source code is governed by an MIT-style license that can be
|
---|
| 7 | * found in the LICENSE file at https://angular.io/license
|
---|
| 8 | */
|
---|
| 9 | import { AbsoluteFsPath } from '../../../src/ngtsc/file_system';
|
---|
| 10 | import { Logger } from '../../../src/ngtsc/logging';
|
---|
| 11 | import { EntryPointWithDependencies } from '../dependencies/dependency_host';
|
---|
| 12 | import { DependencyResolver, SortedEntryPointsInfo } from '../dependencies/dependency_resolver';
|
---|
| 13 | import { EntryPointManifest } from '../packages/entry_point_manifest';
|
---|
| 14 | import { PathMappings } from '../path_mappings';
|
---|
| 15 | import { EntryPointCollector } from './entry_point_collector';
|
---|
| 16 | import { EntryPointFinder } from './interface';
|
---|
| 17 | /**
|
---|
| 18 | * An EntryPointFinder that searches for all entry-points that can be found given a `basePath` and
|
---|
| 19 | * `pathMappings`.
|
---|
| 20 | */
|
---|
| 21 | export declare class DirectoryWalkerEntryPointFinder implements EntryPointFinder {
|
---|
| 22 | private logger;
|
---|
| 23 | private resolver;
|
---|
| 24 | private entryPointCollector;
|
---|
| 25 | private entryPointManifest;
|
---|
| 26 | private sourceDirectory;
|
---|
| 27 | private pathMappings;
|
---|
| 28 | private basePaths;
|
---|
| 29 | constructor(logger: Logger, resolver: DependencyResolver, entryPointCollector: EntryPointCollector, entryPointManifest: EntryPointManifest, sourceDirectory: AbsoluteFsPath, pathMappings: PathMappings | undefined);
|
---|
| 30 | /**
|
---|
| 31 | * Search the `sourceDirectory`, and sub-directories, using `pathMappings` as necessary, to find
|
---|
| 32 | * all package entry-points.
|
---|
| 33 | */
|
---|
| 34 | findEntryPoints(): SortedEntryPointsInfo;
|
---|
| 35 | /**
|
---|
| 36 | * Search the `basePath` for possible Angular packages and entry-points.
|
---|
| 37 | *
|
---|
| 38 | * @param basePath The path at which to start the search.
|
---|
| 39 | * @returns an array of `EntryPoint`s that were found within `basePath`.
|
---|
| 40 | */
|
---|
| 41 | walkBasePathForPackages(basePath: AbsoluteFsPath): EntryPointWithDependencies[];
|
---|
| 42 | }
|
---|