mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-11-18 20:11:14 +00:00
Enables passing --declaration, --emitDeclarationOnly, --declarationMap, --soureMap and --inlineSourceMap to tsc --build (#51241)
* Add different tests for baselining before behavior * Fix assert for first project output * Add ability to pass declaration, declarationMap, emitDeclarationOnly, sourceMap and inlineSourceMap on commandline of --build * Store these options in --out scenario * Store buildInfo program for --out even if not composite * Changes to make these commanline options work * Do not include sourceMapUrl text in the sourceFile version * Emit complete program in --out scenario as well since we need to determine uptodate ness * Copy js or dts bundle from old build if emitting only js or dts files * Dont emit dts if we want to emit only js files even though options suggest emitting d.ts files as well * Adding comments and refactoring some of the code
This commit is contained in:
1 parent
896b922871
commit
eac566b8c3
336 files changed
+38579
-2748
No files matched your search
+113
-118
@@ -300,12 +300,65 @@ namespace ts {
|
||||
transpileOptionValue: undefined,
|
||||
defaultValueDescription: Diagnostics.false_unless_composite_is_set
|
||||
},
|
||||
{
|
||||
name: "declaration",
|
||||
shortName: "d",
|
||||
type: "boolean",
|
||||
// Not setting affectsEmit because we calculate this flag might not affect full emit
|
||||
affectsBuildInfo: true,
|
||||
showInSimplifiedHelpView: true,
|
||||
category: Diagnostics.Emit,
|
||||
transpileOptionValue: undefined,
|
||||
description: Diagnostics.Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project,
|
||||
defaultValueDescription: Diagnostics.false_unless_composite_is_set,
|
||||
},
|
||||
{
|
||||
name: "declarationMap",
|
||||
type: "boolean",
|
||||
// Not setting affectsEmit because we calculate this flag might not affect full emit
|
||||
affectsBuildInfo: true,
|
||||
showInSimplifiedHelpView: true,
|
||||
category: Diagnostics.Emit,
|
||||
transpileOptionValue: undefined,
|
||||
defaultValueDescription: false,
|
||||
description: Diagnostics.Create_sourcemaps_for_d_ts_files
|
||||
},
|
||||
{
|
||||
name: "emitDeclarationOnly",
|
||||
type: "boolean",
|
||||
// Not setting affectsEmit because we calculate this flag might not affect full emit
|
||||
affectsBuildInfo: true,
|
||||
showInSimplifiedHelpView: true,
|
||||
category: Diagnostics.Emit,
|
||||
description: Diagnostics.Only_output_d_ts_files_and_not_JavaScript_files,
|
||||
transpileOptionValue: undefined,
|
||||
defaultValueDescription: false,
|
||||
},
|
||||
{
|
||||
name: "sourceMap",
|
||||
type: "boolean",
|
||||
// Not setting affectsEmit because we calculate this flag might not affect full emit
|
||||
affectsBuildInfo: true,
|
||||
showInSimplifiedHelpView: true,
|
||||
category: Diagnostics.Emit,
|
||||
defaultValueDescription: false,
|
||||
description: Diagnostics.Create_source_map_files_for_emitted_JavaScript_files,
|
||||
},
|
||||
{
|
||||
name: "inlineSourceMap",
|
||||
type: "boolean",
|
||||
// Not setting affectsEmit because we calculate this flag might not affect full emit
|
||||
affectsBuildInfo: true,
|
||||
category: Diagnostics.Emit,
|
||||
description: Diagnostics.Include_sourcemap_files_inside_the_emitted_JavaScript,
|
||||
defaultValueDescription: false,
|
||||
},
|
||||
{
|
||||
name: "assumeChangesOnlyAffectDirectDependencies",
|
||||
type: "boolean",
|
||||
affectsSemanticDiagnostics: true,
|
||||
affectsEmit: true,
|
||||
affectsMultiFileEmitBuildInfo: true,
|
||||
affectsBuildInfo: true,
|
||||
category: Diagnostics.Watch_and_Build_Modes,
|
||||
description: Diagnostics.Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it,
|
||||
defaultValueDescription: false,
|
||||
@@ -341,7 +394,7 @@ namespace ts {
|
||||
affectsSourceFile: true,
|
||||
affectsModuleResolution: true,
|
||||
affectsEmit: true,
|
||||
affectsMultiFileEmitBuildInfo: true,
|
||||
affectsBuildInfo: true,
|
||||
paramType: Diagnostics.VERSION,
|
||||
showInSimplifiedHelpView: true,
|
||||
category: Diagnostics.Language_and_Environment,
|
||||
@@ -369,7 +422,7 @@ namespace ts {
|
||||
})),
|
||||
affectsModuleResolution: true,
|
||||
affectsEmit: true,
|
||||
affectsMultiFileEmitBuildInfo: true,
|
||||
affectsBuildInfo: true,
|
||||
paramType: Diagnostics.KIND,
|
||||
showInSimplifiedHelpView: true,
|
||||
category: Diagnostics.Modules,
|
||||
@@ -480,7 +533,7 @@ namespace ts {
|
||||
type: jsxOptionMap,
|
||||
affectsSourceFile: true,
|
||||
affectsEmit: true,
|
||||
affectsMultiFileEmitBuildInfo: true,
|
||||
affectsBuildInfo: true,
|
||||
affectsModuleResolution: true,
|
||||
paramType: Diagnostics.KIND,
|
||||
showInSimplifiedHelpView: true,
|
||||
@@ -488,58 +541,12 @@ namespace ts {
|
||||
description: Diagnostics.Specify_what_JSX_code_is_generated,
|
||||
defaultValueDescription: undefined,
|
||||
},
|
||||
{
|
||||
name: "declaration",
|
||||
shortName: "d",
|
||||
type: "boolean",
|
||||
affectsEmit: true,
|
||||
affectsMultiFileEmitBuildInfo: true,
|
||||
showInSimplifiedHelpView: true,
|
||||
category: Diagnostics.Emit,
|
||||
transpileOptionValue: undefined,
|
||||
description: Diagnostics.Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project,
|
||||
defaultValueDescription: Diagnostics.false_unless_composite_is_set,
|
||||
},
|
||||
{
|
||||
name: "declarationMap",
|
||||
type: "boolean",
|
||||
affectsEmit: true,
|
||||
affectsMultiFileEmitBuildInfo: true,
|
||||
showInSimplifiedHelpView: true,
|
||||
category: Diagnostics.Emit,
|
||||
transpileOptionValue: undefined,
|
||||
defaultValueDescription: false,
|
||||
description: Diagnostics.Create_sourcemaps_for_d_ts_files
|
||||
},
|
||||
{
|
||||
name: "emitDeclarationOnly",
|
||||
type: "boolean",
|
||||
affectsEmit: true,
|
||||
affectsMultiFileEmitBuildInfo: true,
|
||||
showInSimplifiedHelpView: true,
|
||||
|
||||
category: Diagnostics.Emit,
|
||||
description: Diagnostics.Only_output_d_ts_files_and_not_JavaScript_files,
|
||||
transpileOptionValue: undefined,
|
||||
defaultValueDescription: false,
|
||||
},
|
||||
{
|
||||
name: "sourceMap",
|
||||
type: "boolean",
|
||||
affectsEmit: true,
|
||||
affectsMultiFileEmitBuildInfo: true,
|
||||
showInSimplifiedHelpView: true,
|
||||
category: Diagnostics.Emit,
|
||||
defaultValueDescription: false,
|
||||
description: Diagnostics.Create_source_map_files_for_emitted_JavaScript_files,
|
||||
},
|
||||
{
|
||||
name: "outFile",
|
||||
type: "string",
|
||||
affectsEmit: true,
|
||||
affectsMultiFileEmitBuildInfo: true,
|
||||
affectsBuildInfo: true,
|
||||
affectsDeclarationPath: true,
|
||||
affectsBundleEmitBuildInfo: true,
|
||||
isFilePath: true,
|
||||
paramType: Diagnostics.FILE,
|
||||
showInSimplifiedHelpView: true,
|
||||
@@ -551,7 +558,7 @@ namespace ts {
|
||||
name: "outDir",
|
||||
type: "string",
|
||||
affectsEmit: true,
|
||||
affectsMultiFileEmitBuildInfo: true,
|
||||
affectsBuildInfo: true,
|
||||
affectsDeclarationPath: true,
|
||||
isFilePath: true,
|
||||
paramType: Diagnostics.DIRECTORY,
|
||||
@@ -563,7 +570,7 @@ namespace ts {
|
||||
name: "rootDir",
|
||||
type: "string",
|
||||
affectsEmit: true,
|
||||
affectsMultiFileEmitBuildInfo: true,
|
||||
affectsBuildInfo: true,
|
||||
affectsDeclarationPath: true,
|
||||
isFilePath: true,
|
||||
paramType: Diagnostics.LOCATION,
|
||||
@@ -574,9 +581,8 @@ namespace ts {
|
||||
{
|
||||
name: "composite",
|
||||
type: "boolean",
|
||||
affectsEmit: true,
|
||||
affectsMultiFileEmitBuildInfo: true,
|
||||
affectsBundleEmitBuildInfo: true,
|
||||
// Not setting affectsEmit because we calculate this flag might not affect full emit
|
||||
affectsBuildInfo: true,
|
||||
isTSConfigOnly: true,
|
||||
category: Diagnostics.Projects,
|
||||
transpileOptionValue: undefined,
|
||||
@@ -587,8 +593,7 @@ namespace ts {
|
||||
name: "tsBuildInfoFile",
|
||||
type: "string",
|
||||
affectsEmit: true,
|
||||
affectsMultiFileEmitBuildInfo: true,
|
||||
affectsBundleEmitBuildInfo: true,
|
||||
affectsBuildInfo: true,
|
||||
isFilePath: true,
|
||||
paramType: Diagnostics.FILE,
|
||||
category: Diagnostics.Projects,
|
||||
@@ -600,7 +605,7 @@ namespace ts {
|
||||
name: "removeComments",
|
||||
type: "boolean",
|
||||
affectsEmit: true,
|
||||
affectsMultiFileEmitBuildInfo: true,
|
||||
affectsBuildInfo: true,
|
||||
showInSimplifiedHelpView: true,
|
||||
category: Diagnostics.Emit,
|
||||
defaultValueDescription: false,
|
||||
@@ -619,7 +624,7 @@ namespace ts {
|
||||
name: "importHelpers",
|
||||
type: "boolean",
|
||||
affectsEmit: true,
|
||||
affectsMultiFileEmitBuildInfo: true,
|
||||
affectsBuildInfo: true,
|
||||
category: Diagnostics.Emit,
|
||||
description: Diagnostics.Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file,
|
||||
defaultValueDescription: false,
|
||||
@@ -633,7 +638,7 @@ namespace ts {
|
||||
})),
|
||||
affectsEmit: true,
|
||||
affectsSemanticDiagnostics: true,
|
||||
affectsMultiFileEmitBuildInfo: true,
|
||||
affectsBuildInfo: true,
|
||||
category: Diagnostics.Emit,
|
||||
description: Diagnostics.Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types,
|
||||
defaultValueDescription: ImportsNotUsedAsValues.Remove,
|
||||
@@ -642,7 +647,7 @@ namespace ts {
|
||||
name: "downlevelIteration",
|
||||
type: "boolean",
|
||||
affectsEmit: true,
|
||||
affectsMultiFileEmitBuildInfo: true,
|
||||
affectsBuildInfo: true,
|
||||
category: Diagnostics.Emit,
|
||||
description: Diagnostics.Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration,
|
||||
defaultValueDescription: false,
|
||||
@@ -664,7 +669,7 @@ namespace ts {
|
||||
// The value of each strictFlag depends on own strictFlag value or this and never accessed directly.
|
||||
// But we need to store `strict` in builf info, even though it won't be examined directly, so that the
|
||||
// flags it controls (e.g. `strictNullChecks`) will be retrieved correctly
|
||||
affectsMultiFileEmitBuildInfo: true,
|
||||
affectsBuildInfo: true,
|
||||
showInSimplifiedHelpView: true,
|
||||
category: Diagnostics.Type_Checking,
|
||||
description: Diagnostics.Enable_all_strict_type_checking_options,
|
||||
@@ -674,7 +679,7 @@ namespace ts {
|
||||
name: "noImplicitAny",
|
||||
type: "boolean",
|
||||
affectsSemanticDiagnostics: true,
|
||||
affectsMultiFileEmitBuildInfo: true,
|
||||
affectsBuildInfo: true,
|
||||
strictFlag: true,
|
||||
category: Diagnostics.Type_Checking,
|
||||
description: Diagnostics.Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type,
|
||||
@@ -684,7 +689,7 @@ namespace ts {
|
||||
name: "strictNullChecks",
|
||||
type: "boolean",
|
||||
affectsSemanticDiagnostics: true,
|
||||
affectsMultiFileEmitBuildInfo: true,
|
||||
affectsBuildInfo: true,
|
||||
strictFlag: true,
|
||||
category: Diagnostics.Type_Checking,
|
||||
description: Diagnostics.When_type_checking_take_into_account_null_and_undefined,
|
||||
@@ -694,7 +699,7 @@ namespace ts {
|
||||
name: "strictFunctionTypes",
|
||||
type: "boolean",
|
||||
affectsSemanticDiagnostics: true,
|
||||
affectsMultiFileEmitBuildInfo: true,
|
||||
affectsBuildInfo: true,
|
||||
strictFlag: true,
|
||||
category: Diagnostics.Type_Checking,
|
||||
description: Diagnostics.When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible,
|
||||
@@ -704,7 +709,7 @@ namespace ts {
|
||||
name: "strictBindCallApply",
|
||||
type: "boolean",
|
||||
affectsSemanticDiagnostics: true,
|
||||
affectsMultiFileEmitBuildInfo: true,
|
||||
affectsBuildInfo: true,
|
||||
strictFlag: true,
|
||||
category: Diagnostics.Type_Checking,
|
||||
description: Diagnostics.Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function,
|
||||
@@ -714,7 +719,7 @@ namespace ts {
|
||||
name: "strictPropertyInitialization",
|
||||
type: "boolean",
|
||||
affectsSemanticDiagnostics: true,
|
||||
affectsMultiFileEmitBuildInfo: true,
|
||||
affectsBuildInfo: true,
|
||||
strictFlag: true,
|
||||
category: Diagnostics.Type_Checking,
|
||||
description: Diagnostics.Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor,
|
||||
@@ -724,7 +729,7 @@ namespace ts {
|
||||
name: "noImplicitThis",
|
||||
type: "boolean",
|
||||
affectsSemanticDiagnostics: true,
|
||||
affectsMultiFileEmitBuildInfo: true,
|
||||
affectsBuildInfo: true,
|
||||
strictFlag: true,
|
||||
category: Diagnostics.Type_Checking,
|
||||
description: Diagnostics.Enable_error_reporting_when_this_is_given_the_type_any,
|
||||
@@ -734,7 +739,7 @@ namespace ts {
|
||||
name: "useUnknownInCatchVariables",
|
||||
type: "boolean",
|
||||
affectsSemanticDiagnostics: true,
|
||||
affectsMultiFileEmitBuildInfo: true,
|
||||
affectsBuildInfo: true,
|
||||
strictFlag: true,
|
||||
category: Diagnostics.Type_Checking,
|
||||
description: Diagnostics.Default_catch_clause_variables_as_unknown_instead_of_any,
|
||||
@@ -745,7 +750,7 @@ namespace ts {
|
||||
type: "boolean",
|
||||
affectsSourceFile: true,
|
||||
affectsEmit: true,
|
||||
affectsMultiFileEmitBuildInfo: true,
|
||||
affectsBuildInfo: true,
|
||||
strictFlag: true,
|
||||
category: Diagnostics.Type_Checking,
|
||||
description: Diagnostics.Ensure_use_strict_is_always_emitted,
|
||||
@@ -757,7 +762,7 @@ namespace ts {
|
||||
name: "noUnusedLocals",
|
||||
type: "boolean",
|
||||
affectsSemanticDiagnostics: true,
|
||||
affectsMultiFileEmitBuildInfo: true,
|
||||
affectsBuildInfo: true,
|
||||
category: Diagnostics.Type_Checking,
|
||||
description: Diagnostics.Enable_error_reporting_when_local_variables_aren_t_read,
|
||||
defaultValueDescription: false,
|
||||
@@ -766,7 +771,7 @@ namespace ts {
|
||||
name: "noUnusedParameters",
|
||||
type: "boolean",
|
||||
affectsSemanticDiagnostics: true,
|
||||
affectsMultiFileEmitBuildInfo: true,
|
||||
affectsBuildInfo: true,
|
||||
category: Diagnostics.Type_Checking,
|
||||
description: Diagnostics.Raise_an_error_when_a_function_parameter_isn_t_read,
|
||||
defaultValueDescription: false,
|
||||
@@ -775,7 +780,7 @@ namespace ts {
|
||||
name: "exactOptionalPropertyTypes",
|
||||
type: "boolean",
|
||||
affectsSemanticDiagnostics: true,
|
||||
affectsMultiFileEmitBuildInfo: true,
|
||||
affectsBuildInfo: true,
|
||||
category: Diagnostics.Type_Checking,
|
||||
description: Diagnostics.Interpret_optional_property_types_as_written_rather_than_adding_undefined,
|
||||
defaultValueDescription: false,
|
||||
@@ -784,7 +789,7 @@ namespace ts {
|
||||
name: "noImplicitReturns",
|
||||
type: "boolean",
|
||||
affectsSemanticDiagnostics: true,
|
||||
affectsMultiFileEmitBuildInfo: true,
|
||||
affectsBuildInfo: true,
|
||||
category: Diagnostics.Type_Checking,
|
||||
description: Diagnostics.Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function,
|
||||
defaultValueDescription: false,
|
||||
@@ -794,7 +799,7 @@ namespace ts {
|
||||
type: "boolean",
|
||||
affectsBindDiagnostics: true,
|
||||
affectsSemanticDiagnostics: true,
|
||||
affectsMultiFileEmitBuildInfo: true,
|
||||
affectsBuildInfo: true,
|
||||
category: Diagnostics.Type_Checking,
|
||||
description: Diagnostics.Enable_error_reporting_for_fallthrough_cases_in_switch_statements,
|
||||
defaultValueDescription: false,
|
||||
@@ -803,7 +808,7 @@ namespace ts {
|
||||
name: "noUncheckedIndexedAccess",
|
||||
type: "boolean",
|
||||
affectsSemanticDiagnostics: true,
|
||||
affectsMultiFileEmitBuildInfo: true,
|
||||
affectsBuildInfo: true,
|
||||
category: Diagnostics.Type_Checking,
|
||||
description: Diagnostics.Add_undefined_to_a_type_when_accessed_using_an_index,
|
||||
defaultValueDescription: false,
|
||||
@@ -812,7 +817,7 @@ namespace ts {
|
||||
name: "noImplicitOverride",
|
||||
type: "boolean",
|
||||
affectsSemanticDiagnostics: true,
|
||||
affectsMultiFileEmitBuildInfo: true,
|
||||
affectsBuildInfo: true,
|
||||
category: Diagnostics.Type_Checking,
|
||||
description: Diagnostics.Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier,
|
||||
defaultValueDescription: false,
|
||||
@@ -821,7 +826,7 @@ namespace ts {
|
||||
name: "noPropertyAccessFromIndexSignature",
|
||||
type: "boolean",
|
||||
affectsSemanticDiagnostics: true,
|
||||
affectsMultiFileEmitBuildInfo: true,
|
||||
affectsBuildInfo: true,
|
||||
showInSimplifiedHelpView: false,
|
||||
category: Diagnostics.Type_Checking,
|
||||
description: Diagnostics.Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type,
|
||||
@@ -908,7 +913,7 @@ namespace ts {
|
||||
name: "allowSyntheticDefaultImports",
|
||||
type: "boolean",
|
||||
affectsSemanticDiagnostics: true,
|
||||
affectsMultiFileEmitBuildInfo: true,
|
||||
affectsBuildInfo: true,
|
||||
category: Diagnostics.Interop_Constraints,
|
||||
description: Diagnostics.Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export,
|
||||
defaultValueDescription: Diagnostics.module_system_or_esModuleInterop
|
||||
@@ -918,7 +923,7 @@ namespace ts {
|
||||
type: "boolean",
|
||||
affectsSemanticDiagnostics: true,
|
||||
affectsEmit: true,
|
||||
affectsMultiFileEmitBuildInfo: true,
|
||||
affectsBuildInfo: true,
|
||||
showInSimplifiedHelpView: true,
|
||||
category: Diagnostics.Interop_Constraints,
|
||||
description: Diagnostics.Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility,
|
||||
@@ -935,7 +940,7 @@ namespace ts {
|
||||
name: "allowUmdGlobalAccess",
|
||||
type: "boolean",
|
||||
affectsSemanticDiagnostics: true,
|
||||
affectsMultiFileEmitBuildInfo: true,
|
||||
affectsBuildInfo: true,
|
||||
category: Diagnostics.Modules,
|
||||
description: Diagnostics.Allow_accessing_UMD_globals_from_modules,
|
||||
defaultValueDescription: false,
|
||||
@@ -958,7 +963,7 @@ namespace ts {
|
||||
name: "sourceRoot",
|
||||
type: "string",
|
||||
affectsEmit: true,
|
||||
affectsMultiFileEmitBuildInfo: true,
|
||||
affectsBuildInfo: true,
|
||||
paramType: Diagnostics.LOCATION,
|
||||
category: Diagnostics.Emit,
|
||||
description: Diagnostics.Specify_the_root_path_for_debuggers_to_find_the_reference_source_code,
|
||||
@@ -967,25 +972,16 @@ namespace ts {
|
||||
name: "mapRoot",
|
||||
type: "string",
|
||||
affectsEmit: true,
|
||||
affectsMultiFileEmitBuildInfo: true,
|
||||
affectsBuildInfo: true,
|
||||
paramType: Diagnostics.LOCATION,
|
||||
category: Diagnostics.Emit,
|
||||
description: Diagnostics.Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations,
|
||||
},
|
||||
{
|
||||
name: "inlineSourceMap",
|
||||
type: "boolean",
|
||||
affectsEmit: true,
|
||||
affectsMultiFileEmitBuildInfo: true,
|
||||
category: Diagnostics.Emit,
|
||||
description: Diagnostics.Include_sourcemap_files_inside_the_emitted_JavaScript,
|
||||
defaultValueDescription: false,
|
||||
},
|
||||
{
|
||||
name: "inlineSources",
|
||||
type: "boolean",
|
||||
affectsEmit: true,
|
||||
affectsMultiFileEmitBuildInfo: true,
|
||||
affectsBuildInfo: true,
|
||||
category: Diagnostics.Emit,
|
||||
description: Diagnostics.Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript,
|
||||
defaultValueDescription: false,
|
||||
@@ -996,7 +992,7 @@ namespace ts {
|
||||
name: "experimentalDecorators",
|
||||
type: "boolean",
|
||||
affectsSemanticDiagnostics: true,
|
||||
affectsMultiFileEmitBuildInfo: true,
|
||||
affectsBuildInfo: true,
|
||||
category: Diagnostics.Language_and_Environment,
|
||||
description: Diagnostics.Enable_experimental_support_for_TC39_stage_2_draft_decorators,
|
||||
defaultValueDescription: false,
|
||||
@@ -1006,7 +1002,7 @@ namespace ts {
|
||||
type: "boolean",
|
||||
affectsSemanticDiagnostics: true,
|
||||
affectsEmit: true,
|
||||
affectsMultiFileEmitBuildInfo: true,
|
||||
affectsBuildInfo: true,
|
||||
category: Diagnostics.Language_and_Environment,
|
||||
description: Diagnostics.Emit_design_type_metadata_for_decorated_declarations_in_source_files,
|
||||
defaultValueDescription: false,
|
||||
@@ -1032,7 +1028,7 @@ namespace ts {
|
||||
type: "string",
|
||||
affectsSemanticDiagnostics: true,
|
||||
affectsEmit: true,
|
||||
affectsMultiFileEmitBuildInfo: true,
|
||||
affectsBuildInfo: true,
|
||||
affectsModuleResolution: true,
|
||||
category: Diagnostics.Language_and_Environment,
|
||||
description: Diagnostics.Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Asterisk,
|
||||
@@ -1051,9 +1047,8 @@ namespace ts {
|
||||
name: "out",
|
||||
type: "string",
|
||||
affectsEmit: true,
|
||||
affectsMultiFileEmitBuildInfo: true,
|
||||
affectsBuildInfo: true,
|
||||
affectsDeclarationPath: true,
|
||||
affectsBundleEmitBuildInfo: true,
|
||||
isFilePath: false, // This is intentionally broken to support compatability with existing tsconfig files
|
||||
// for correct behaviour, please use outFile
|
||||
category: Diagnostics.Backwards_Compatibility,
|
||||
@@ -1065,7 +1060,7 @@ namespace ts {
|
||||
name: "reactNamespace",
|
||||
type: "string",
|
||||
affectsEmit: true,
|
||||
affectsMultiFileEmitBuildInfo: true,
|
||||
affectsBuildInfo: true,
|
||||
category: Diagnostics.Language_and_Environment,
|
||||
description: Diagnostics.Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit,
|
||||
defaultValueDescription: "`React`",
|
||||
@@ -1074,7 +1069,7 @@ namespace ts {
|
||||
name: "skipDefaultLibCheck",
|
||||
type: "boolean",
|
||||
// We need to store these to determine whether `lib` files need to be rechecked
|
||||
affectsMultiFileEmitBuildInfo: true,
|
||||
affectsBuildInfo: true,
|
||||
category: Diagnostics.Completeness,
|
||||
description: Diagnostics.Skip_type_checking_d_ts_files_that_are_included_with_TypeScript,
|
||||
defaultValueDescription: false,
|
||||
@@ -1090,7 +1085,7 @@ namespace ts {
|
||||
name: "emitBOM",
|
||||
type: "boolean",
|
||||
affectsEmit: true,
|
||||
affectsMultiFileEmitBuildInfo: true,
|
||||
affectsBuildInfo: true,
|
||||
category: Diagnostics.Emit,
|
||||
description: Diagnostics.Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files,
|
||||
defaultValueDescription: false,
|
||||
@@ -1102,7 +1097,7 @@ namespace ts {
|
||||
lf: NewLineKind.LineFeed
|
||||
})),
|
||||
affectsEmit: true,
|
||||
affectsMultiFileEmitBuildInfo: true,
|
||||
affectsBuildInfo: true,
|
||||
paramType: Diagnostics.NEWLINE,
|
||||
category: Diagnostics.Emit,
|
||||
description: Diagnostics.Set_the_newline_character_for_emitting_files,
|
||||
@@ -1112,7 +1107,7 @@ namespace ts {
|
||||
name: "noErrorTruncation",
|
||||
type: "boolean",
|
||||
affectsSemanticDiagnostics: true,
|
||||
affectsMultiFileEmitBuildInfo: true,
|
||||
affectsBuildInfo: true,
|
||||
category: Diagnostics.Output_Formatting,
|
||||
description: Diagnostics.Disable_truncating_types_in_error_messages,
|
||||
defaultValueDescription: false,
|
||||
@@ -1143,7 +1138,7 @@ namespace ts {
|
||||
name: "stripInternal",
|
||||
type: "boolean",
|
||||
affectsEmit: true,
|
||||
affectsMultiFileEmitBuildInfo: true,
|
||||
affectsBuildInfo: true,
|
||||
category: Diagnostics.Emit,
|
||||
description: Diagnostics.Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments,
|
||||
defaultValueDescription: false,
|
||||
@@ -1184,7 +1179,7 @@ namespace ts {
|
||||
name: "noImplicitUseStrict",
|
||||
type: "boolean",
|
||||
affectsSemanticDiagnostics: true,
|
||||
affectsMultiFileEmitBuildInfo: true,
|
||||
affectsBuildInfo: true,
|
||||
category: Diagnostics.Backwards_Compatibility,
|
||||
description: Diagnostics.Disable_adding_use_strict_directives_in_emitted_JavaScript_files,
|
||||
defaultValueDescription: false,
|
||||
@@ -1193,7 +1188,7 @@ namespace ts {
|
||||
name: "noEmitHelpers",
|
||||
type: "boolean",
|
||||
affectsEmit: true,
|
||||
affectsMultiFileEmitBuildInfo: true,
|
||||
affectsBuildInfo: true,
|
||||
category: Diagnostics.Emit,
|
||||
description: Diagnostics.Disable_generating_custom_helper_functions_like_extends_in_compiled_output,
|
||||
defaultValueDescription: false,
|
||||
@@ -1202,7 +1197,7 @@ namespace ts {
|
||||
name: "noEmitOnError",
|
||||
type: "boolean",
|
||||
affectsEmit: true,
|
||||
affectsMultiFileEmitBuildInfo: true,
|
||||
affectsBuildInfo: true,
|
||||
category: Diagnostics.Emit,
|
||||
transpileOptionValue: undefined,
|
||||
description: Diagnostics.Disable_emitting_files_if_any_type_checking_errors_are_reported,
|
||||
@@ -1212,7 +1207,7 @@ namespace ts {
|
||||
name: "preserveConstEnums",
|
||||
type: "boolean",
|
||||
affectsEmit: true,
|
||||
affectsMultiFileEmitBuildInfo: true,
|
||||
affectsBuildInfo: true,
|
||||
category: Diagnostics.Emit,
|
||||
description: Diagnostics.Disable_erasing_const_enum_declarations_in_generated_code,
|
||||
defaultValueDescription: false,
|
||||
@@ -1221,7 +1216,7 @@ namespace ts {
|
||||
name: "declarationDir",
|
||||
type: "string",
|
||||
affectsEmit: true,
|
||||
affectsMultiFileEmitBuildInfo: true,
|
||||
affectsBuildInfo: true,
|
||||
affectsDeclarationPath: true,
|
||||
isFilePath: true,
|
||||
paramType: Diagnostics.DIRECTORY,
|
||||
@@ -1233,7 +1228,7 @@ namespace ts {
|
||||
name: "skipLibCheck",
|
||||
type: "boolean",
|
||||
// We need to store these to determine whether `lib` files need to be rechecked
|
||||
affectsMultiFileEmitBuildInfo: true,
|
||||
affectsBuildInfo: true,
|
||||
category: Diagnostics.Completeness,
|
||||
description: Diagnostics.Skip_type_checking_all_d_ts_files,
|
||||
defaultValueDescription: false,
|
||||
@@ -1243,7 +1238,7 @@ namespace ts {
|
||||
type: "boolean",
|
||||
affectsBindDiagnostics: true,
|
||||
affectsSemanticDiagnostics: true,
|
||||
affectsMultiFileEmitBuildInfo: true,
|
||||
affectsBuildInfo: true,
|
||||
category: Diagnostics.Type_Checking,
|
||||
description: Diagnostics.Disable_error_reporting_for_unused_labels,
|
||||
defaultValueDescription: undefined,
|
||||
@@ -1253,7 +1248,7 @@ namespace ts {
|
||||
type: "boolean",
|
||||
affectsBindDiagnostics: true,
|
||||
affectsSemanticDiagnostics: true,
|
||||
affectsMultiFileEmitBuildInfo: true,
|
||||
affectsBuildInfo: true,
|
||||
category: Diagnostics.Type_Checking,
|
||||
description: Diagnostics.Disable_error_reporting_for_unreachable_code,
|
||||
defaultValueDescription: undefined,
|
||||
@@ -1262,7 +1257,7 @@ namespace ts {
|
||||
name: "suppressExcessPropertyErrors",
|
||||
type: "boolean",
|
||||
affectsSemanticDiagnostics: true,
|
||||
affectsMultiFileEmitBuildInfo: true,
|
||||
affectsBuildInfo: true,
|
||||
category: Diagnostics.Backwards_Compatibility,
|
||||
description: Diagnostics.Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals,
|
||||
defaultValueDescription: false,
|
||||
@@ -1271,7 +1266,7 @@ namespace ts {
|
||||
name: "suppressImplicitAnyIndexErrors",
|
||||
type: "boolean",
|
||||
affectsSemanticDiagnostics: true,
|
||||
affectsMultiFileEmitBuildInfo: true,
|
||||
affectsBuildInfo: true,
|
||||
category: Diagnostics.Backwards_Compatibility,
|
||||
description: Diagnostics.Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures,
|
||||
defaultValueDescription: false,
|
||||
@@ -1296,7 +1291,7 @@ namespace ts {
|
||||
name: "noStrictGenericChecks",
|
||||
type: "boolean",
|
||||
affectsSemanticDiagnostics: true,
|
||||
affectsMultiFileEmitBuildInfo: true,
|
||||
affectsBuildInfo: true,
|
||||
category: Diagnostics.Backwards_Compatibility,
|
||||
description: Diagnostics.Disable_strict_checking_of_generic_signatures_in_function_types,
|
||||
defaultValueDescription: false,
|
||||
@@ -1306,7 +1301,7 @@ namespace ts {
|
||||
type: "boolean",
|
||||
affectsSemanticDiagnostics: true,
|
||||
affectsEmit: true,
|
||||
affectsMultiFileEmitBuildInfo: true,
|
||||
affectsBuildInfo: true,
|
||||
category: Diagnostics.Language_and_Environment,
|
||||
description: Diagnostics.Emit_ECMAScript_standard_compliant_class_fields,
|
||||
defaultValueDescription: Diagnostics.true_for_ES2022_and_above_including_ESNext
|
||||
@@ -1315,7 +1310,7 @@ namespace ts {
|
||||
name: "preserveValueImports",
|
||||
type: "boolean",
|
||||
affectsEmit: true,
|
||||
affectsMultiFileEmitBuildInfo: true,
|
||||
affectsBuildInfo: true,
|
||||
category: Diagnostics.Emit,
|
||||
description: Diagnostics.Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed,
|
||||
defaultValueDescription: false,
|
||||
|
||||
Reference in new issue
Block a user