
This commit will store a cached copy of the parsed tsconfig that can be reused if the tsconfig path is the same. This will improve the ngcc "noop" case, where there is no processing to do, when the entry-points have already been processed. Previously we were parsing this config every time we checked for entry-points to process, which can take up to seconds in some cases. Cherry-picked from #37417 (6e7bd939f6901539305de0917350c5ebc328e775). Resolves #36882
24 lines
931 B
TypeScript
24 lines
931 B
TypeScript
/**
|
|
* @license
|
|
* Copyright Google Inc. All Rights Reserved.
|
|
*
|
|
* Use of this source code is governed by an MIT-style license that can be
|
|
* found in the LICENSE file at https://angular.io/license
|
|
*/
|
|
import {NodeJSFileSystem, setFileSystem} from '../src/ngtsc/file_system';
|
|
|
|
import {mainNgcc} from './src/main';
|
|
import {AsyncNgccOptions, NgccOptions, SyncNgccOptions} from './src/ngcc_options';
|
|
|
|
export {ConsoleLogger} from './src/logging/console_logger';
|
|
export {Logger, LogLevel} from './src/logging/logger';
|
|
export {AsyncNgccOptions, clearTsConfigCache, NgccOptions, SyncNgccOptions} from './src/ngcc_options';
|
|
export {PathMappings} from './src/path_mappings';
|
|
|
|
export function process(options: AsyncNgccOptions): Promise<void>;
|
|
export function process(options: SyncNgccOptions): void;
|
|
export function process(options: NgccOptions): void|Promise<void> {
|
|
setFileSystem(new NodeJSFileSystem());
|
|
return mainNgcc(options);
|
|
}
|