"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/compiler/commandLineParser.ts" between
TypeScript-3.6.2.tar.gz and TypeScript-3.6.3.tar.gz

About: Microsoft\PKG_DESCR_TTrsquo;s TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

commandLineParser.ts  (TypeScript-3.6.2):commandLineParser.ts  (TypeScript-3.6.3)
skipping to change at line 150 skipping to change at line 150
type: "boolean", type: "boolean",
category: Diagnostics.Advanced_Options, category: Diagnostics.Advanced_Options,
description: Diagnostics.Show_verbose_diagnostic_information description: Diagnostics.Show_verbose_diagnostic_information
}, },
{ {
name: "incremental", name: "incremental",
shortName: "i", shortName: "i",
type: "boolean", type: "boolean",
category: Diagnostics.Basic_Options, category: Diagnostics.Basic_Options,
description: Diagnostics.Enable_incremental_compilation, description: Diagnostics.Enable_incremental_compilation,
transpileOptionValue: undefined
}, },
{ {
name: "locale", name: "locale",
type: "string", type: "string",
category: Diagnostics.Advanced_Options, category: Diagnostics.Advanced_Options,
description: Diagnostics.The_locale_used_when_displaying_messages_to _the_user_e_g_en_us description: Diagnostics.The_locale_used_when_displaying_messages_to _the_user_e_g_en_us
}, },
]; ];
/* @internal */ /* @internal */
skipping to change at line 265 skipping to change at line 266
{ {
name: "lib", name: "lib",
type: "list", type: "list",
element: { element: {
name: "lib", name: "lib",
type: libMap type: libMap
}, },
affectsModuleResolution: true, affectsModuleResolution: true,
showInSimplifiedHelpView: true, showInSimplifiedHelpView: true,
category: Diagnostics.Basic_Options, category: Diagnostics.Basic_Options,
description: Diagnostics.Specify_library_files_to_be_included_in_the description: Diagnostics.Specify_library_files_to_be_included_in_the
_compilation _compilation,
transpileOptionValue: undefined
}, },
{ {
name: "allowJs", name: "allowJs",
type: "boolean", type: "boolean",
affectsModuleResolution: true, affectsModuleResolution: true,
showInSimplifiedHelpView: true, showInSimplifiedHelpView: true,
category: Diagnostics.Basic_Options, category: Diagnostics.Basic_Options,
description: Diagnostics.Allow_javascript_files_to_be_compiled description: Diagnostics.Allow_javascript_files_to_be_compiled
}, },
{ {
skipping to change at line 302 skipping to change at line 304
description: Diagnostics.Specify_JSX_code_generation_Colon_preserve_ react_native_or_react, description: Diagnostics.Specify_JSX_code_generation_Colon_preserve_ react_native_or_react,
}, },
{ {
name: "declaration", name: "declaration",
shortName: "d", shortName: "d",
type: "boolean", type: "boolean",
affectsEmit: true, affectsEmit: true,
showInSimplifiedHelpView: true, showInSimplifiedHelpView: true,
category: Diagnostics.Basic_Options, category: Diagnostics.Basic_Options,
description: Diagnostics.Generates_corresponding_d_ts_file, description: Diagnostics.Generates_corresponding_d_ts_file,
transpileOptionValue: undefined
}, },
{ {
name: "declarationMap", name: "declarationMap",
type: "boolean", type: "boolean",
affectsEmit: true, affectsEmit: true,
showInSimplifiedHelpView: true, showInSimplifiedHelpView: true,
category: Diagnostics.Basic_Options, category: Diagnostics.Basic_Options,
description: Diagnostics.Generates_a_sourcemap_for_each_correspondin g_d_ts_file, description: Diagnostics.Generates_a_sourcemap_for_each_correspondin g_d_ts_file,
transpileOptionValue: undefined
}, },
{ {
name: "emitDeclarationOnly", name: "emitDeclarationOnly",
type: "boolean", type: "boolean",
affectsEmit: true, affectsEmit: true,
category: Diagnostics.Advanced_Options, category: Diagnostics.Advanced_Options,
description: Diagnostics.Only_emit_d_ts_declaration_files, description: Diagnostics.Only_emit_d_ts_declaration_files,
transpileOptionValue: undefined
}, },
{ {
name: "sourceMap", name: "sourceMap",
type: "boolean", type: "boolean",
affectsEmit: true, affectsEmit: true,
showInSimplifiedHelpView: true, showInSimplifiedHelpView: true,
category: Diagnostics.Basic_Options, category: Diagnostics.Basic_Options,
description: Diagnostics.Generates_corresponding_map_file, description: Diagnostics.Generates_corresponding_map_file,
}, },
{ {
name: "outFile", name: "outFile",
type: "string", type: "string",
affectsEmit: true, affectsEmit: true,
isFilePath: true, isFilePath: true,
paramType: Diagnostics.FILE, paramType: Diagnostics.FILE,
showInSimplifiedHelpView: true, showInSimplifiedHelpView: true,
category: Diagnostics.Basic_Options, category: Diagnostics.Basic_Options,
description: Diagnostics.Concatenate_and_emit_output_to_single_file, description: Diagnostics.Concatenate_and_emit_output_to_single_file,
transpileOptionValue: undefined
}, },
{ {
name: "outDir", name: "outDir",
type: "string", type: "string",
affectsEmit: true, affectsEmit: true,
isFilePath: true, isFilePath: true,
paramType: Diagnostics.DIRECTORY, paramType: Diagnostics.DIRECTORY,
showInSimplifiedHelpView: true, showInSimplifiedHelpView: true,
category: Diagnostics.Basic_Options, category: Diagnostics.Basic_Options,
description: Diagnostics.Redirect_output_structure_to_the_directory, description: Diagnostics.Redirect_output_structure_to_the_directory,
skipping to change at line 362 skipping to change at line 368
category: Diagnostics.Basic_Options, category: Diagnostics.Basic_Options,
description: Diagnostics.Specify_the_root_directory_of_input_files_U se_to_control_the_output_directory_structure_with_outDir, description: Diagnostics.Specify_the_root_directory_of_input_files_U se_to_control_the_output_directory_structure_with_outDir,
}, },
{ {
name: "composite", name: "composite",
type: "boolean", type: "boolean",
affectsEmit: true, affectsEmit: true,
isTSConfigOnly: true, isTSConfigOnly: true,
category: Diagnostics.Basic_Options, category: Diagnostics.Basic_Options,
description: Diagnostics.Enable_project_compilation, description: Diagnostics.Enable_project_compilation,
transpileOptionValue: undefined
}, },
{ {
name: "tsBuildInfoFile", name: "tsBuildInfoFile",
type: "string", type: "string",
affectsEmit: true, affectsEmit: true,
isFilePath: true, isFilePath: true,
paramType: Diagnostics.FILE, paramType: Diagnostics.FILE,
category: Diagnostics.Basic_Options, category: Diagnostics.Basic_Options,
description: Diagnostics.Specify_file_to_store_incremental_compilati on_information, description: Diagnostics.Specify_file_to_store_incremental_compilati on_information,
transpileOptionValue: undefined
}, },
{ {
name: "removeComments", name: "removeComments",
type: "boolean", type: "boolean",
affectsEmit: true, affectsEmit: true,
showInSimplifiedHelpView: true, showInSimplifiedHelpView: true,
category: Diagnostics.Basic_Options, category: Diagnostics.Basic_Options,
description: Diagnostics.Do_not_emit_comments_to_output, description: Diagnostics.Do_not_emit_comments_to_output,
}, },
{ {
name: "noEmit", name: "noEmit",
type: "boolean", type: "boolean",
affectsEmit: true, affectsEmit: true,
showInSimplifiedHelpView: true, showInSimplifiedHelpView: true,
category: Diagnostics.Basic_Options, category: Diagnostics.Basic_Options,
description: Diagnostics.Do_not_emit_outputs, description: Diagnostics.Do_not_emit_outputs,
transpileOptionValue: undefined
}, },
{ {
name: "importHelpers", name: "importHelpers",
type: "boolean", type: "boolean",
affectsEmit: true, affectsEmit: true,
category: Diagnostics.Basic_Options, category: Diagnostics.Basic_Options,
description: Diagnostics.Import_emit_helpers_from_tslib description: Diagnostics.Import_emit_helpers_from_tslib
}, },
{ {
name: "downlevelIteration", name: "downlevelIteration",
type: "boolean", type: "boolean",
affectsEmit: true, affectsEmit: true,
category: Diagnostics.Basic_Options, category: Diagnostics.Basic_Options,
description: Diagnostics.Provide_full_support_for_iterables_in_for_o f_spread_and_destructuring_when_targeting_ES5_or_ES3 description: Diagnostics.Provide_full_support_for_iterables_in_for_o f_spread_and_destructuring_when_targeting_ES5_or_ES3
}, },
{ {
name: "isolatedModules", name: "isolatedModules",
type: "boolean", type: "boolean",
category: Diagnostics.Basic_Options, category: Diagnostics.Basic_Options,
description: Diagnostics.Transpile_each_file_as_a_separate_module_si description: Diagnostics.Transpile_each_file_as_a_separate_module_si
milar_to_ts_transpileModule milar_to_ts_transpileModule,
transpileOptionValue: true
}, },
// Strict Type Checks // Strict Type Checks
{ {
name: "strict", name: "strict",
type: "boolean", type: "boolean",
showInSimplifiedHelpView: true, showInSimplifiedHelpView: true,
category: Diagnostics.Strict_Type_Checking_Options, category: Diagnostics.Strict_Type_Checking_Options,
description: Diagnostics.Enable_all_strict_type_checking_options description: Diagnostics.Enable_all_strict_type_checking_options
}, },
skipping to change at line 543 skipping to change at line 553
description: Diagnostics.Base_directory_to_resolve_non_absolute_modu le_names description: Diagnostics.Base_directory_to_resolve_non_absolute_modu le_names
}, },
{ {
// this option can only be specified in tsconfig.json // this option can only be specified in tsconfig.json
// use type = object to copy the value as-is // use type = object to copy the value as-is
name: "paths", name: "paths",
type: "object", type: "object",
affectsModuleResolution: true, affectsModuleResolution: true,
isTSConfigOnly: true, isTSConfigOnly: true,
category: Diagnostics.Module_Resolution_Options, category: Diagnostics.Module_Resolution_Options,
description: Diagnostics.A_series_of_entries_which_re_map_imports_to description: Diagnostics.A_series_of_entries_which_re_map_imports_to
_lookup_locations_relative_to_the_baseUrl _lookup_locations_relative_to_the_baseUrl,
transpileOptionValue: undefined
}, },
{ {
// this option can only be specified in tsconfig.json // this option can only be specified in tsconfig.json
// use type = object to copy the value as-is // use type = object to copy the value as-is
name: "rootDirs", name: "rootDirs",
type: "list", type: "list",
isTSConfigOnly: true, isTSConfigOnly: true,
element: { element: {
name: "rootDirs", name: "rootDirs",
type: "string", type: "string",
isFilePath: true isFilePath: true
}, },
affectsModuleResolution: true, affectsModuleResolution: true,
category: Diagnostics.Module_Resolution_Options, category: Diagnostics.Module_Resolution_Options,
description: Diagnostics.List_of_root_folders_whose_combined_content description: Diagnostics.List_of_root_folders_whose_combined_content
_represents_the_structure_of_the_project_at_runtime _represents_the_structure_of_the_project_at_runtime,
transpileOptionValue: undefined
}, },
{ {
name: "typeRoots", name: "typeRoots",
type: "list", type: "list",
element: { element: {
name: "typeRoots", name: "typeRoots",
type: "string", type: "string",
isFilePath: true isFilePath: true
}, },
affectsModuleResolution: true, affectsModuleResolution: true,
skipping to change at line 582 skipping to change at line 594
{ {
name: "types", name: "types",
type: "list", type: "list",
element: { element: {
name: "types", name: "types",
type: "string" type: "string"
}, },
affectsModuleResolution: true, affectsModuleResolution: true,
showInSimplifiedHelpView: true, showInSimplifiedHelpView: true,
category: Diagnostics.Module_Resolution_Options, category: Diagnostics.Module_Resolution_Options,
description: Diagnostics.Type_declaration_files_to_be_included_in_co description: Diagnostics.Type_declaration_files_to_be_included_in_co
mpilation mpilation,
transpileOptionValue: undefined
}, },
{ {
name: "allowSyntheticDefaultImports", name: "allowSyntheticDefaultImports",
type: "boolean", type: "boolean",
affectsSemanticDiagnostics: true, affectsSemanticDiagnostics: true,
category: Diagnostics.Module_Resolution_Options, category: Diagnostics.Module_Resolution_Options,
description: Diagnostics.Allow_default_imports_from_modules_with_no_ default_export_This_does_not_affect_code_emit_just_typechecking description: Diagnostics.Allow_default_imports_from_modules_with_no_ default_export_This_does_not_affect_code_emit_just_typechecking
}, },
{ {
name: "esModuleInterop", name: "esModuleInterop",
skipping to change at line 683 skipping to change at line 696
{ {
name: "out", name: "out",
type: "string", type: "string",
affectsEmit: true, affectsEmit: true,
isFilePath: false, // This is intentionally broken to support compat ability with existing tsconfig files isFilePath: false, // This is intentionally broken to support compat ability with existing tsconfig files
// for correct behaviour, please use outFile // for correct behaviour, please use outFile
category: Diagnostics.Advanced_Options, category: Diagnostics.Advanced_Options,
paramType: Diagnostics.FILE, paramType: Diagnostics.FILE,
description: Diagnostics.Deprecated_Use_outFile_instead_Concatenate_ and_emit_output_to_single_file, description: Diagnostics.Deprecated_Use_outFile_instead_Concatenate_ and_emit_output_to_single_file,
transpileOptionValue: undefined
}, },
{ {
name: "reactNamespace", name: "reactNamespace",
type: "string", type: "string",
affectsEmit: true, affectsEmit: true,
category: Diagnostics.Advanced_Options, category: Diagnostics.Advanced_Options,
description: Diagnostics.Deprecated_Use_jsxFactory_instead_Specify_t he_object_invoked_for_createElement_when_targeting_react_JSX_emit description: Diagnostics.Deprecated_Use_jsxFactory_instead_Specify_t he_object_invoked_for_createElement_when_targeting_react_JSX_emit
}, },
{ {
name: "skipDefaultLibCheck", name: "skipDefaultLibCheck",
skipping to change at line 732 skipping to change at line 746
name: "noErrorTruncation", name: "noErrorTruncation",
type: "boolean", type: "boolean",
category: Diagnostics.Advanced_Options, category: Diagnostics.Advanced_Options,
description: Diagnostics.Do_not_truncate_error_messages description: Diagnostics.Do_not_truncate_error_messages
}, },
{ {
name: "noLib", name: "noLib",
type: "boolean", type: "boolean",
affectsModuleResolution: true, affectsModuleResolution: true,
category: Diagnostics.Advanced_Options, category: Diagnostics.Advanced_Options,
description: Diagnostics.Do_not_include_the_default_library_file_lib description: Diagnostics.Do_not_include_the_default_library_file_lib
_d_ts _d_ts,
// We are not returning a sourceFile for lib file when asked by the
program,
// so pass --noLib to avoid reporting a file not found error.
transpileOptionValue: true
}, },
{ {
name: "noResolve", name: "noResolve",
type: "boolean", type: "boolean",
affectsModuleResolution: true, affectsModuleResolution: true,
category: Diagnostics.Advanced_Options, category: Diagnostics.Advanced_Options,
description: Diagnostics.Do_not_add_triple_slash_references_or_impor description: Diagnostics.Do_not_add_triple_slash_references_or_impor
ted_modules_to_the_list_of_compiled_files ted_modules_to_the_list_of_compiled_files,
// We are not doing a full typecheck, we are not resolving the whole
context,
// so pass --noResolve to avoid reporting missing file errors.
transpileOptionValue: true
}, },
{ {
name: "stripInternal", name: "stripInternal",
type: "boolean", type: "boolean",
affectsEmit: true, affectsEmit: true,
category: Diagnostics.Advanced_Options, category: Diagnostics.Advanced_Options,
description: Diagnostics.Do_not_emit_declarations_for_code_that_has_ an_internal_annotation, description: Diagnostics.Do_not_emit_declarations_for_code_that_has_ an_internal_annotation,
}, },
{ {
name: "disableSizeLimit", name: "disableSizeLimit",
skipping to change at line 775 skipping to change at line 795
affectsEmit: true, affectsEmit: true,
category: Diagnostics.Advanced_Options, category: Diagnostics.Advanced_Options,
description: Diagnostics.Do_not_generate_custom_helper_functions_lik e_extends_in_compiled_output description: Diagnostics.Do_not_generate_custom_helper_functions_lik e_extends_in_compiled_output
}, },
{ {
name: "noEmitOnError", name: "noEmitOnError",
type: "boolean", type: "boolean",
affectsEmit: true, affectsEmit: true,
category: Diagnostics.Advanced_Options, category: Diagnostics.Advanced_Options,
description: Diagnostics.Do_not_emit_outputs_if_any_errors_were_repo rted, description: Diagnostics.Do_not_emit_outputs_if_any_errors_were_repo rted,
transpileOptionValue: undefined
}, },
{ {
name: "preserveConstEnums", name: "preserveConstEnums",
type: "boolean", type: "boolean",
affectsEmit: true, affectsEmit: true,
category: Diagnostics.Advanced_Options, category: Diagnostics.Advanced_Options,
description: Diagnostics.Do_not_erase_const_enum_declarations_in_gen erated_code description: Diagnostics.Do_not_erase_const_enum_declarations_in_gen erated_code
}, },
{ {
name: "declarationDir", name: "declarationDir",
type: "string", type: "string",
affectsEmit: true, affectsEmit: true,
isFilePath: true, isFilePath: true,
paramType: Diagnostics.DIRECTORY, paramType: Diagnostics.DIRECTORY,
category: Diagnostics.Advanced_Options, category: Diagnostics.Advanced_Options,
description: Diagnostics.Output_directory_for_generated_declaration_ description: Diagnostics.Output_directory_for_generated_declaration_
files files,
transpileOptionValue: undefined
}, },
{ {
name: "skipLibCheck", name: "skipLibCheck",
type: "boolean", type: "boolean",
category: Diagnostics.Advanced_Options, category: Diagnostics.Advanced_Options,
description: Diagnostics.Skip_type_checking_of_declaration_files, description: Diagnostics.Skip_type_checking_of_declaration_files,
}, },
{ {
name: "allowUnusedLabels", name: "allowUnusedLabels",
type: "boolean", type: "boolean",
skipping to change at line 884 skipping to change at line 906
/* @internal */ /* @internal */
export const moduleResolutionOptionDeclarations: ReadonlyArray<CommandLineOp tion> = export const moduleResolutionOptionDeclarations: ReadonlyArray<CommandLineOp tion> =
optionDeclarations.filter(option => !!option.affectsModuleResolution); optionDeclarations.filter(option => !!option.affectsModuleResolution);
/* @internal */ /* @internal */
export const sourceFileAffectingCompilerOptions: ReadonlyArray<CommandLineOp tion> = optionDeclarations.filter(option => export const sourceFileAffectingCompilerOptions: ReadonlyArray<CommandLineOp tion> = optionDeclarations.filter(option =>
!!option.affectsSourceFile || !!option.affectsModuleResolution || !!opti on.affectsBindDiagnostics); !!option.affectsSourceFile || !!option.affectsModuleResolution || !!opti on.affectsBindDiagnostics);
/* @internal */ /* @internal */
export const transpileOptionValueCompilerOptions: ReadonlyArray<CommandLineO
ption> = optionDeclarations.filter(option =>
hasProperty(option, "transpileOptionValue"));
/* @internal */
export const buildOpts: CommandLineOption[] = [ export const buildOpts: CommandLineOption[] = [
...commonOptionsWithBuild, ...commonOptionsWithBuild,
{ {
name: "verbose", name: "verbose",
shortName: "v", shortName: "v",
category: Diagnostics.Command_line_Options, category: Diagnostics.Command_line_Options,
description: Diagnostics.Enable_verbose_logging, description: Diagnostics.Enable_verbose_logging,
type: "boolean" type: "boolean"
}, },
{ {
 End of changes. 19 change blocks. 
16 lines changed or deleted 45 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)