2018-07-16 03:49:56 -04:00
|
|
|
/**
|
|
|
|
* @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
|
|
|
|
*/
|
|
|
|
|
2019-06-06 15:22:32 -04:00
|
|
|
import {NodeJSFileSystem, setFileSystem} from '../src/ngtsc/file_system';
|
2019-03-20 09:47:59 -04:00
|
|
|
import {hasBeenProcessed as _hasBeenProcessed} from './src/packages/build_marker';
|
|
|
|
import {EntryPointJsonProperty, EntryPointPackageJson} from './src/packages/entry_point';
|
|
|
|
|
2019-03-29 06:13:14 -04:00
|
|
|
export {ConsoleLogger, LogLevel} from './src/logging/console_logger';
|
|
|
|
export {Logger} from './src/logging/logger';
|
2019-03-20 09:47:59 -04:00
|
|
|
export {NgccOptions, mainNgcc as process} from './src/main';
|
2019-04-28 15:47:57 -04:00
|
|
|
export {PathMappings} from './src/utils';
|
2019-03-20 09:47:59 -04:00
|
|
|
|
|
|
|
export function hasBeenProcessed(packageJson: object, format: string) {
|
|
|
|
// We are wrapping this function to hide the internal types.
|
|
|
|
return _hasBeenProcessed(packageJson as EntryPointPackageJson, format as EntryPointJsonProperty);
|
|
|
|
}
|
2019-06-06 15:22:32 -04:00
|
|
|
|
|
|
|
// Configure the file-system for external users.
|
|
|
|
setFileSystem(new NodeJSFileSystem());
|