fix(ivy): ngcc - show logging via CLI by default (#29686)
The new logger implementation caused a regression where by default the ngcc CLI did not output any logging messages. PR Close #29686
This commit is contained in:

committed by
Jason Aden

parent
0f4f315f8e
commit
3246399bff
@ -60,14 +60,14 @@ if (require.main === module) {
|
||||
const propertiesToConsider: string[] = options['p'];
|
||||
const targetEntryPointPath = options['t'] ? options['t'] : undefined;
|
||||
const compileAllFormats = !options['first-only'];
|
||||
const logLevel = options['l'] as keyof typeof LogLevel;
|
||||
const logLevel = options['l'] as keyof typeof LogLevel | undefined;
|
||||
try {
|
||||
mainNgcc({
|
||||
basePath: baseSourcePath,
|
||||
propertiesToConsider,
|
||||
targetEntryPointPath,
|
||||
compileAllFormats,
|
||||
logger: new ConsoleLogger(LogLevel[logLevel]),
|
||||
logger: logLevel && new ConsoleLogger(LogLevel[logLevel]),
|
||||
});
|
||||
process.exitCode = 0;
|
||||
} catch (e) {
|
||||
|
Reference in New Issue
Block a user