diff --git a/src/compiler/program.ts b/src/compiler/program.ts index aff5154abe000..35772b2f04086 100755 --- a/src/compiler/program.ts +++ b/src/compiler/program.ts @@ -2201,7 +2201,7 @@ namespace ts { if (options.emitDeclarationOnly) { if (!options.declaration) { - createDiagnosticForOptionName(Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1, "emitDeclarationOnly", "declarations"); + createDiagnosticForOptionName(Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1, "emitDeclarationOnly", "declaration"); } if (options.noEmit) { diff --git a/tests/baselines/reference/declFileEmitDeclarationOnlyError1.errors.txt b/tests/baselines/reference/declFileEmitDeclarationOnlyError1.errors.txt index 9c4455f773a66..62447a4a91152 100644 --- a/tests/baselines/reference/declFileEmitDeclarationOnlyError1.errors.txt +++ b/tests/baselines/reference/declFileEmitDeclarationOnlyError1.errors.txt @@ -1,7 +1,7 @@ -error TS5052: Option 'emitDeclarationOnly' cannot be specified without specifying option 'declarations'. +error TS5052: Option 'emitDeclarationOnly' cannot be specified without specifying option 'declaration'. -!!! error TS5052: Option 'emitDeclarationOnly' cannot be specified without specifying option 'declarations'. +!!! error TS5052: Option 'emitDeclarationOnly' cannot be specified without specifying option 'declaration'. ==== tests/cases/compiler/hello.ts (0 errors) ==== var hello = "yo!"; \ No newline at end of file diff --git a/tests/baselines/reference/declFileEmitDeclarationOnlyError2.errors.txt b/tests/baselines/reference/declFileEmitDeclarationOnlyError2.errors.txt index 03db2ae409b88..37be20aa132e1 100644 --- a/tests/baselines/reference/declFileEmitDeclarationOnlyError2.errors.txt +++ b/tests/baselines/reference/declFileEmitDeclarationOnlyError2.errors.txt @@ -1,8 +1,8 @@ -error TS5052: Option 'emitDeclarationOnly' cannot be specified without specifying option 'declarations'. +error TS5052: Option 'emitDeclarationOnly' cannot be specified without specifying option 'declaration'. error TS5053: Option 'emitDeclarationOnly' cannot be specified with option 'noEmit'. -!!! error TS5052: Option 'emitDeclarationOnly' cannot be specified without specifying option 'declarations'. +!!! error TS5052: Option 'emitDeclarationOnly' cannot be specified without specifying option 'declaration'. !!! error TS5053: Option 'emitDeclarationOnly' cannot be specified with option 'noEmit'. ==== tests/cases/compiler/hello.ts (0 errors) ==== var hello = "yo!";