code: function writeEmittedFiles(emitOutput, jsFilePath, sourceMapFilePath, writeByteOrderMark, sourceFiles) {
                  if (compilerOptions.sourceMap && !compilerOptions.inlineSourceMap) {
                      ts.writeFile(host, emitterDiagnostics, sourceMapFilePath, sourceMap.getText(), /*writeByteOrderMark*/ false, sourceFiles);
                  }
                  if (sourceMapDataList) {
                      sourceMapDataList.push(sourceMap.getSourceMapData());
                  }
                  ts.writeFile(host, emitterDiagnostics, jsFilePath, emitOutput, writeByteOrderMark, sourceFiles);
              }
docs: Write emitted output to disk