Skip to content

Commit f6984d5

Browse files
committed
refactor(@angular/cli): remove node.js check in extract-i18n
This is redundant since this is covered by https://github.com/angular/angular-cli/blob/e4e15058cb7a3612cb6ac31cda175783042c5a1c/packages/angular/cli/lib/cli/index.ts#L26
1 parent b69ca3a commit f6984d5

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

packages/angular/cli/commands/extract-i18n-impl.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,6 @@ export class ExtractI18nCommand extends ArchitectCommand<ExtractI18nCommandSchem
1414
public override readonly target = 'extract-i18n';
1515

1616
public override async run(options: ExtractI18nCommandSchema & Arguments) {
17-
const version = process.version.substr(1).split('.');
18-
if (Number(version[0]) === 12 && Number(version[1]) === 0) {
19-
this.logger.error(
20-
'Due to a defect in Node.js 12.0, the command is not supported on this Node.js version. ' +
21-
'Please upgrade to Node.js 12.1 or later.',
22-
);
23-
24-
return 1;
25-
}
26-
2717
return this.runArchitectTarget(options);
2818
}
2919
}

0 commit comments

Comments
 (0)