Hi,
I'm trying to create an extension that will synchronize TypeScript files from one Project into another Project. After copying the .ts file from source to destination it should generate the .js and .map.js file in the destination.
I'm using the following code to copy the file to the destination. The .Save() in that code does nothing and after the code only the .ts file is in the destination location.
ProjectItem destinationProjectItem = FindProjectItem(destinationFolder.ProjectItems, document.Name); if (destinationProjectItem != null) { destinationProjectItem.Delete(); } // Copy source to destination ProjectItem newFile = destinationFolder.ProjectItems.AddFromFileCopy(document.FullName); newFile.Open(); newFile.Document.Save();
My question is: How can I start the TypeScript Compiler from this code?
Regards
Paul