Exports emit_with_tsickle method for custom tsc_wrapped-like compilations.

PiperOrigin-RevId: 231849528
diff --git a/internal/tsc_wrapped/tsc_wrapped.ts b/internal/tsc_wrapped/tsc_wrapped.ts
index eb8bcbb..983ac78 100644
--- a/internal/tsc_wrapped/tsc_wrapped.ts
+++ b/internal/tsc_wrapped/tsc_wrapped.ts
@@ -262,7 +262,14 @@
   return diagnostics;
 }
 
-function emitWithTsickle(
+/**
+ * Runs the emit pipeline with Tsickle transformations - goog.module rewriting
+ * and Closure types emitted included.
+ * Exported to be used by the internal global refactoring tools.
+ * TODO(radokirov): investigate using runWithOptions and making this private
+ * again, if we can make compilerHosts match.
+ */
+export function emitWithTsickle(
     program: ts.Program, compilerHost: CompilerHost,
     compilationTargets: ts.SourceFile[], options: ts.CompilerOptions,
     bazelOpts: BazelOptions): ts.Diagnostic[] {