2018-07-16 08:49:56 +01:00
|
|
|
/**
|
|
|
|
|
* @license
|
2020-05-19 12:08:49 -07:00
|
|
|
* Copyright Google LLC All Rights Reserved.
|
2018-07-16 08:49:56 +01:00
|
|
|
*
|
|
|
|
|
* 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
|
|
|
|
|
*/
|
2020-04-17 14:19:31 +01:00
|
|
|
import {NodeJSFileSystem, setFileSystem} from '../src/ngtsc/file_system';
|
2018-07-16 08:49:56 +01:00
|
|
|
|
2020-04-13 13:25:49 +01:00
|
|
|
import {mainNgcc} from './src/main';
|
2020-05-12 08:19:59 +01:00
|
|
|
import {AsyncNgccOptions, SyncNgccOptions} from './src/ngcc_options';
|
2020-04-06 08:30:08 +01:00
|
|
|
|
2020-05-14 20:06:12 +01:00
|
|
|
export {ConsoleLogger, Logger, LogLevel} from '../src/ngtsc/logging';
|
2020-06-03 17:18:46 +01:00
|
|
|
export {AsyncNgccOptions, clearTsConfigCache, NgccOptions, SyncNgccOptions} from './src/ngcc_options';
|
2020-04-29 21:28:29 +03:00
|
|
|
export {PathMappings} from './src/path_mappings';
|
2019-03-20 13:47:59 +00:00
|
|
|
|
2020-05-12 08:19:59 +01:00
|
|
|
export function process<T extends AsyncNgccOptions|SyncNgccOptions>(options: T):
|
|
|
|
|
T extends AsyncNgccOptions ? Promise<void>: void;
|
|
|
|
|
export function process(options: AsyncNgccOptions|SyncNgccOptions): void|Promise<void> {
|
2020-04-17 14:19:31 +01:00
|
|
|
setFileSystem(new NodeJSFileSystem());
|
2019-08-19 22:58:22 +03:00
|
|
|
return mainNgcc(options);
|
2019-05-15 13:38:19 +01:00
|
|
|
}
|