File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -300,19 +300,19 @@ namespace ts {
300300 return sys . exit ( ExitStatus . DiagnosticsPresent_OutputsSkipped ) ;
301301 }
302302
303- let fileOrDirectory = normalizePath ( commandLine . options . project ) ;
303+ const fileOrDirectory = normalizePath ( commandLine . options . project ) ;
304304 if ( ! fileOrDirectory /* current directory */ || sys . directoryExists ( fileOrDirectory ) ) {
305305 configFileName = combinePaths ( fileOrDirectory , "tsconfig.json" ) ;
306306 }
307307 else {
308308 if ( ! / ^ t s c o n f i g (?: - .* ) ? \. j s o n $ / . test ( getBaseFileName ( fileOrDirectory ) ) ) {
309- reportDiagnostic ( createCompilerDiagnostic ( Diagnostics . The_project_file_name_is_not_in_tsconfig_Asterisk_json_format_Colon_0 , commandLine . options . project ) ) ;
309+ reportDiagnostic ( createCompilerDiagnostic ( Diagnostics . The_project_file_name_is_not_in_tsconfig_Asterisk_json_format_Colon_0 , commandLine . options . project ) , /* compilerHost */ undefined ) ;
310310 return sys . exit ( ExitStatus . DiagnosticsPresent_OutputsSkipped ) ;
311311 }
312312 configFileName = fileOrDirectory ;
313313 }
314314 if ( ! sys . fileExists ( configFileName ) ) {
315- reportDiagnostic ( createCompilerDiagnostic ( Diagnostics . Cannot_find_any_project_file_in_specified_path_Colon_0 , commandLine . options . project ) ) ;
315+ reportDiagnostic ( createCompilerDiagnostic ( Diagnostics . Cannot_find_any_project_file_in_specified_path_Colon_0 , commandLine . options . project ) , /* compilerHost */ undefined ) ;
316316 return sys . exit ( ExitStatus . DiagnosticsPresent_OutputsSkipped ) ;
317317 }
318318 }
You can’t perform that action at this time.
0 commit comments