Making changes to typescript files in the tree

I tried to apply a trick from a previous post:

How to open StartItem directly without the helper window - Development - Aras Community - Aras Community

However, that file is now a typescript file in my tree. I guess that means I need to transpile it to javascript/do whatever else you at Aras do in your frontend build process, in order for it to end up in the right place? What is the recommended way to do this?

  • Hi Harald,

    I guess there is nothing wrong with the typescript file. It just tells us that you use a more up to date Innovator version. In recent versions (I14+) many JS files were converted to TS even they basically do the same. Which version do you use?

    I am not sure if the trick from the post (11SP15!!!) still will work in your Innovator version. If the code looks nearly identical there is a good chance it will work. You can edit the TS file in a text editor just the same way you would do with the previous JS. 

    Angela

  • We are currently in the process of upgrading to 31, I am doing this in a test base which is already upgraded to Release 31. The typescript code is indeed fine, but editing it won't work as it's not typescript code that runs on the client, but javascript transpiled from it. You probably do other things in your frontend build process too, I see the javascript code ends up in files named things like "chunk-OLLZHG3Z.es.js" which contain non-human readable javascript.

    But I can only guess at what happens, because whatever build files you use to do this conversion from typescript to javascript/minification/chunking do not seem to be included in my tree.

    I have found a way to avoid using external links, so I don't need to do this particular hack, but is it intentional that we no longer have the ability to change such things?

  • To be honest, I so far never customized a typescript file, cause I currently don´t have one of these Innovator versions. I just have seen them in test database, but haven´t modified them yet. 

    I haven´t thought about the compiling aspect yet. But that´s a good point. 

    Let´s wait a few hours until the Aras Labs team comes back from Thanksgiving :). Or ask Aras support. I am interested in this question too.