@@ -42,9 +42,6 @@ type emitter struct {
42
42
}
43
43
44
44
func (e * emitter ) emit () {
45
- if e .host .Options ().ListEmittedFiles .IsTrue () {
46
- e .emitResult .EmittedFiles = []string {}
47
- }
48
45
// !!! tracing
49
46
e .emitJSFile (e .sourceFile , e .paths .JsFilePath (), e .paths .SourceMapFilePath ())
50
47
e .emitDeclarationFile (e .sourceFile , e .paths .DeclarationFilePath (), e .paths .DeclarationMapPath ())
@@ -254,7 +251,7 @@ func (e *emitter) printSourceFile(jsFilePath string, sourceMapFilePath string, s
254
251
err := e .host .WriteFile (sourceMapFilePath , sourceMap , false /*writeByteOrderMark*/ )
255
252
if err != nil {
256
253
e .emitterDiagnostics .Add (ast .NewCompilerDiagnostic (diagnostics .Could_not_write_file_0_Colon_1 , jsFilePath , err .Error ()))
257
- } else if e . emitResult . EmittedFiles != nil {
254
+ } else {
258
255
e .emitResult .EmittedFiles = append (e .emitResult .EmittedFiles , sourceMapFilePath )
259
256
}
260
257
}
@@ -278,7 +275,7 @@ func (e *emitter) printSourceFile(jsFilePath string, sourceMapFilePath string, s
278
275
}
279
276
if err != nil {
280
277
e .emitterDiagnostics .Add (ast .NewCompilerDiagnostic (diagnostics .Could_not_write_file_0_Colon_1 , jsFilePath , err .Error ()))
281
- } else if e . emitResult . EmittedFiles != nil && ! skippedDtsWrite {
278
+ } else if ! skippedDtsWrite {
282
279
e .emitResult .EmittedFiles = append (e .emitResult .EmittedFiles , jsFilePath )
283
280
}
284
281
0 commit comments