Skip to content

Commit b1a05b8

Browse files
committed
Improve commandline help for --jsx
1 parent 8180b7d commit b1a05b8

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/compiler/commandLineParser.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ namespace ts {
4545
"react": JsxEmit.React
4646
},
4747
paramType: Diagnostics.KIND,
48-
description: Diagnostics.Specifies_how_to_transform_JSX_syntax_during_compilation,
48+
description: Diagnostics.Specify_JSX_code_generation_Colon_preserve_or_react,
4949
error: Diagnostics.Argument_for_jsx_must_be_preserve_or_react
5050
},
5151
{

src/compiler/diagnosticInformationMap.generated.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -541,7 +541,7 @@ namespace ts {
541541
Specifies_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix: { code: 6060, category: DiagnosticCategory.Message, key: "Specifies the end of line sequence to be used when emitting files: 'CRLF' (dos) or 'LF' (unix)." },
542542
NEWLINE: { code: 6061, category: DiagnosticCategory.Message, key: "NEWLINE" },
543543
Argument_for_newLine_option_must_be_CRLF_or_LF: { code: 6062, category: DiagnosticCategory.Error, key: "Argument for '--newLine' option must be 'CRLF' or 'LF'." },
544-
Specifies_how_to_transform_JSX_syntax_during_compilation: { code: 6080, category: DiagnosticCategory.Message, key: "Specifies how to transform JSX syntax during compilation." },
544+
Specify_JSX_code_generation_Colon_preserve_or_react: { code: 6080, category: DiagnosticCategory.Message, key: "Specify JSX code generation: 'preserve' or 'react'" },
545545
Argument_for_jsx_must_be_preserve_or_react: { code: 6081, category: DiagnosticCategory.Message, key: "Argument for '--jsx' must be 'preserve' or 'react'." },
546546
Option_experimentalDecorators_must_also_be_specified_when_option_emitDecoratorMetadata_is_specified: { code: 6064, category: DiagnosticCategory.Error, key: "Option 'experimentalDecorators' must also be specified when option 'emitDecoratorMetadata' is specified." },
547547
Enables_experimental_support_for_ES7_decorators: { code: 6065, category: DiagnosticCategory.Message, key: "Enables experimental support for ES7 decorators." },

src/compiler/diagnosticMessages.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2156,7 +2156,7 @@
21562156
"category": "Error",
21572157
"code": 6062
21582158
},
2159-
"Specifies how to transform JSX syntax during compilation.": {
2159+
"Specify JSX code generation: 'preserve' or 'react'": {
21602160
"category": "Message",
21612161
"code": 6080
21622162
},

0 commit comments

Comments
 (0)