UNPKG

1.37 kBTypeScriptView Raw
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 */
8import { Resolver } from 'enhanced-resolve';
9import * as ts from 'typescript';
10import { InputFileSystem } from './ivy/system';
11export declare class NgccProcessor {
12 private readonly propertiesToConsider;
13 private readonly compilationWarnings;
14 private readonly compilationErrors;
15 private readonly basePath;
16 private readonly tsConfigPath;
17 private readonly inputFileSystem;
18 private readonly resolver;
19 private _processedModules;
20 private _logger;
21 private _nodeModulesDirectory;
22 constructor(propertiesToConsider: string[], compilationWarnings: (Error | string)[], compilationErrors: (Error | string)[], basePath: string, tsConfigPath: string, inputFileSystem: InputFileSystem, resolver: Resolver);
23 /** Process the entire node modules tree. */
24 process(): void;
25 /** Process a module and it's depedencies. */
26 processModule(moduleName: string, resolvedModule: ts.ResolvedModule | ts.ResolvedTypeReferenceDirective): void;
27 invalidate(fileName: string): void;
28 /**
29 * Try resolve a package.json file from the resolved .d.ts file.
30 */
31 private tryResolvePackage;
32 private findNodeModulesDirectory;
33}