File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1670,8 +1670,13 @@ namespace ts {
16701670 }
16711671 }
16721672
1673- if ( ! options . declaration && options . declarationDir ) {
1674- programDiagnostics . add ( createCompilerDiagnostic ( Diagnostics . Option_0_cannot_be_specified_without_specifying_option_1 , "declarationDir" , "declaration" ) ) ;
1673+ if ( options . declarationDir ) {
1674+ if ( ! options . declaration ) {
1675+ programDiagnostics . add ( createCompilerDiagnostic ( Diagnostics . Option_0_cannot_be_specified_without_specifying_option_1 , "declarationDir" , "declaration" ) ) ;
1676+ }
1677+ if ( options . out || options . outFile ) {
1678+ programDiagnostics . add ( createCompilerDiagnostic ( Diagnostics . Option_0_cannot_be_specified_with_option_1 , "declarationDir" , options . out ? "out" : "outFile" ) ) ;
1679+ }
16751680 }
16761681
16771682 const languageVersion = options . target || ScriptTarget . ES3 ;
You can’t perform that action at this time.
0 commit comments