refactor(compiler): add process title to Angular node binaries (#40648)

Set the process title for @angular/compiler-cli,@angular/localize packages

Resolves #40634

PR Close #40648
This commit is contained in:
Chellappan 2021-01-31 13:20:34 +05:30 committed by Zach Arend
parent 65baac6055
commit 542ba1fc00
4 changed files with 4 additions and 0 deletions

View File

@ -41,6 +41,7 @@ function readXi18nCommandLineAndConfiguration(args: string[]): ParsedConfigurati
// Entry point
if (require.main === module) {
process.title = 'Angular i18n Message Extractor (ng-xi18n)';
const args = process.argv.slice(2);
// We are running the real compiler so run against the real file-system
setFileSystem(new NodeJSFileSystem());

View File

@ -233,6 +233,7 @@ function printDiagnostics(
// CLI entry point
if (require.main === module) {
process.title = 'Angular Compiler (ngc)';
const args = process.argv.slice(2);
// We are running the real compiler so run against the real file-system
setFileSystem(new NodeJSFileSystem());

View File

@ -25,6 +25,7 @@ import {XmbTranslationSerializer} from './translation_files/xmb_translation_seri
import {FormatOptions, parseFormatOptions} from './translation_files/format_options';
if (require.main === module) {
process.title = 'Angular Localization Message Extractor (localize-extract)';
const args = process.argv.slice(2);
const options =
yargs

View File

@ -23,6 +23,7 @@ import {XtbTranslationParser} from './translation_files/translation_parsers/xtb_
import {Translator} from './translator';
if (require.main === module) {
process.title = 'Angular Localization Message Translator (localize-translate)';
const args = process.argv.slice(2);
const options =
yargs