private void InstallTypeDoc(string tempRoot) { var archiveFilepath = Path.GetFullPath("packages/com.unity.tiny/tiny-runtime-dist.zip"); if (!File.Exists(archiveFilepath)) { throw new Exception("Could not find tiny runtime dist file in: " + archiveFilepath); } var launcher = new NodeLauncher(); launcher.WorkingDirectory = tempRoot; launcher.NpmInstall("typedoc"); // Create code folder var code = Path.Combine(tempRoot, "code"); if (!Directory.Exists(code)) { Directory.CreateDirectory(code); } UncompressTineRuntimeDoc(archiveFilepath, tempRoot); var targetTs = Path.Combine(code, "RuntimeFull.ts"); // Need to rename to .ts since d.ts will not generate a site with typedoc var sourceTs = Path.Combine(tempRoot, "Tiny/Dist/runtimedll/RuntimeFull.d.ts"); File.Copy(sourceTs, targetTs, true); }