mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-17 11:24:29 -05:00
Deprecate ES3 in commandline parser (#56304)
Co-authored-by: Jake Bailey <5341706+jakebailey@users.noreply.github.com>
This commit is contained in:
@@ -395,7 +395,9 @@ function generateOptionOutput(sys: System, option: CommandLineOption, rightAlign
|
||||
// Group synonyms: es6/es2015
|
||||
const inverted: { [value: string]: string[]; } = {};
|
||||
option.type.forEach((value, name) => {
|
||||
(inverted[value] ||= []).push(name);
|
||||
if (!option.deprecatedKeys?.has(name)) {
|
||||
(inverted[value] ||= []).push(name);
|
||||
}
|
||||
});
|
||||
return Object.entries(inverted)
|
||||
.map(([, synonyms]) => synonyms.join("/"))
|
||||
|
||||
Reference in New Issue
Block a user