Now that `ngcc/src/ngcc_options` imports `FileWriter` type, there is a circular dependency detected by the `ts-circular-deps:check` lint check: ``` ngcc/src/ngcc_options.ts → ngcc/src/writing/file_writer.ts → ngcc/src/packages/entry_point_bundle.ts → ngcc/src/ngcc_options.ts ``` This commit moves the `PathMappings` type (and related helpers) to a separate file to avoid the circular dependency. NOTE: The circular dependency was only with taking types into account. There was no circular dependency for the actual (JS) code. PR Close #36626
		
			
				
	
	
		
			24 lines
		
	
	
		
			911 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
		
			911 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, 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);
 | 
						|
}
 |