1 | /**
|
---|
2 | * @license
|
---|
3 | * Copyright Google LLC All Rights Reserved.
|
---|
4 | *
|
---|
5 | * Use of this source code is governed by an MIT-style license that can be
|
---|
6 | * found in the LICENSE file at https://angular.io/license
|
---|
7 | */
|
---|
8 | import * as ts from 'typescript';
|
---|
9 | import type { Compiler } from 'webpack';
|
---|
10 | import { InputFileSystem } from './ivy/system';
|
---|
11 | declare type ResolverWithOptions = ReturnType<Compiler['resolverFactory']['get']>;
|
---|
12 | export declare class NgccProcessor {
|
---|
13 | private readonly propertiesToConsider;
|
---|
14 | private readonly compilationWarnings;
|
---|
15 | private readonly compilationErrors;
|
---|
16 | private readonly basePath;
|
---|
17 | private readonly tsConfigPath;
|
---|
18 | private readonly inputFileSystem;
|
---|
19 | private readonly resolver;
|
---|
20 | private _processedModules;
|
---|
21 | private _logger;
|
---|
22 | private _nodeModulesDirectory;
|
---|
23 | constructor(propertiesToConsider: string[], compilationWarnings: (Error | string)[], compilationErrors: (Error | string)[], basePath: string, tsConfigPath: string, inputFileSystem: InputFileSystem, resolver: ResolverWithOptions);
|
---|
24 | /** Process the entire node modules tree. */
|
---|
25 | process(): void;
|
---|
26 | /** Process a module and it's depedencies. */
|
---|
27 | processModule(moduleName: string, resolvedModule: ts.ResolvedModule | ts.ResolvedTypeReferenceDirective): void;
|
---|
28 | invalidate(fileName: string): void;
|
---|
29 | /**
|
---|
30 | * Try resolve a package.json file from the resolved .d.ts file.
|
---|
31 | */
|
---|
32 | private tryResolvePackage;
|
---|
33 | private findNodeModulesDirectory;
|
---|
34 | }
|
---|
35 | export {};
|
---|