mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-26 21:23:53 -06:00
Changed name to noEmitOnError
This commit is contained in:
parent
417555c9e9
commit
bd2c5965f5
@ -54,6 +54,11 @@ module ts {
|
||||
paramType: Diagnostics.KIND,
|
||||
error: Diagnostics.Argument_for_module_option_must_be_commonjs_or_amd
|
||||
},
|
||||
{
|
||||
name: "noEmitOnError",
|
||||
type: "boolean",
|
||||
description: Diagnostics.Do_not_emit_JavaScript_on_error,
|
||||
},
|
||||
{
|
||||
name: "noImplicitAny",
|
||||
type: "boolean",
|
||||
@ -113,11 +118,6 @@ module ts {
|
||||
type: "boolean",
|
||||
description: Diagnostics.Print_the_compiler_s_version,
|
||||
},
|
||||
{
|
||||
name: "warnAsError",
|
||||
type: "boolean",
|
||||
description: Diagnostics.Report_all_warnings_as_errors,
|
||||
},
|
||||
{
|
||||
name: "watch",
|
||||
shortName: "w",
|
||||
|
||||
@ -364,7 +364,7 @@ module ts {
|
||||
Specifies_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations: { code: 6004, category: DiagnosticCategory.Message, key: "Specifies the location where debugger should locate TypeScript files instead of source locations." },
|
||||
Watch_input_files: { code: 6005, category: DiagnosticCategory.Message, key: "Watch input files." },
|
||||
Redirect_output_structure_to_the_directory: { code: 6006, category: DiagnosticCategory.Message, key: "Redirect output structure to the directory." },
|
||||
Report_all_warnings_as_errors: { code: 6007, category: DiagnosticCategory.Message, key: "Report all warnings as errors." },
|
||||
Do_not_emit_JavaScript_on_error: { code: 6007, category: DiagnosticCategory.Message, key: "Do not emit JavaScript on error." },
|
||||
Do_not_emit_comments_to_output: { code: 6009, category: DiagnosticCategory.Message, key: "Do not emit comments to output." },
|
||||
Specify_ECMAScript_target_version_Colon_ES3_default_ES5_or_ES6_experimental: { code: 6015, category: DiagnosticCategory.Message, key: "Specify ECMAScript target version: 'ES3' (default), 'ES5', or 'ES6' (experimental)" },
|
||||
Specify_module_code_generation_Colon_commonjs_or_amd: { code: 6016, category: DiagnosticCategory.Message, key: "Specify module code generation: 'commonjs' or 'amd'" },
|
||||
|
||||
@ -1456,7 +1456,7 @@
|
||||
"category": "Message",
|
||||
"code": 6006
|
||||
},
|
||||
"Report all warnings as errors.": {
|
||||
"Do not emit JavaScript on error.": {
|
||||
"category": "Message",
|
||||
"code": 6007
|
||||
},
|
||||
|
||||
@ -362,7 +362,7 @@ module ts {
|
||||
var checker = program.getTypeChecker(/*fullTypeCheckMode*/ true);
|
||||
var checkStart = new Date().getTime();
|
||||
errors = checker.getDiagnostics();
|
||||
if (checker.hasEarlyErrors() || (compilerOptions.warnAsError && errors.length > 0)) {
|
||||
if (checker.hasEarlyErrors() || (compilerOptions.noEmitOnError && errors.length > 0)) {
|
||||
exitStatus = EmitReturnStatus.AllOutputGenerationSkipped;
|
||||
}
|
||||
else {
|
||||
|
||||
@ -1080,6 +1080,7 @@ module ts {
|
||||
locale?: string;
|
||||
mapRoot?: string;
|
||||
module?: ModuleKind;
|
||||
noEmitOnError?: boolean;
|
||||
noErrorTruncation?: boolean;
|
||||
noImplicitAny?: boolean;
|
||||
noLib?: boolean;
|
||||
@ -1092,7 +1093,6 @@ module ts {
|
||||
sourceRoot?: string;
|
||||
target?: ScriptTarget;
|
||||
version?: boolean;
|
||||
warnAsError?: boolean;
|
||||
watch?: boolean;
|
||||
[option: string]: any;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user