mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-25 16:57:51 +08:00
In certain situations the existing console logger created via `@angular-devkit/core` `createConsoleLogger` could try to write to a closed stdout pipe stream. This would result in an error during execution. For cases such as the completion script command, this would also prevent the command from functioning. To mitigate these cases, `createConsoleLogger` is no longer used and instead a logger instance is directly created within the CLI that uses `Console.log` and `Console.error` to write output. Exiting the CLI also now waits for messages to be logged before proceeding with the exit.