fix(compiler-cli): prevent ng-xi18n from emitting the compilation output (#14115)
fixes #13567 PR Close #14115
This commit is contained in:
@@ -30,7 +30,7 @@ if (require.main === module) {
|
||||
const args = require('minimist')(process.argv.slice(2));
|
||||
const project = args.p || args.project || '.';
|
||||
const cliOptions = new tsc.I18nExtractionCliOptions(args);
|
||||
tsc.main(project, cliOptions, extract)
|
||||
tsc.main(project, cliOptions, extract, {noEmit: true})
|
||||
.then((exitCode: any) => process.exit(exitCode))
|
||||
.catch((e: any) => {
|
||||
console.error(e.stack);
|
||||
|
||||
Reference in New Issue
Block a user