The `Logger` interface and its related classes are general purpose and could be used by other tooling. Moving it into ngtsc is a more suitable place from which to share it - similar to the FileSystem stuff. PR Close #37114
		
			
				
	
	
		
			23 lines
		
	
	
		
			904 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
		
			904 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
| /**
 | |
|  * @license
 | |
|  * Copyright Google LLC 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, SyncNgccOptions} from './src/ngcc_options';
 | |
| 
 | |
| export {ConsoleLogger, Logger, LogLevel} from '../src/ngtsc/logging';
 | |
| export {AsyncNgccOptions, clearTsConfigCache, NgccOptions, SyncNgccOptions} from './src/ngcc_options';
 | |
| export {PathMappings} from './src/path_mappings';
 | |
| 
 | |
| export function process<T extends AsyncNgccOptions|SyncNgccOptions>(options: T):
 | |
|     T extends AsyncNgccOptions ? Promise<void>: void;
 | |
| export function process(options: AsyncNgccOptions|SyncNgccOptions): void|Promise<void> {
 | |
|   setFileSystem(new NodeJSFileSystem());
 | |
|   return mainNgcc(options);
 | |
| }
 |