Since I couldn’t get ES classes working I thought I’d see if I could use TypeScript. I added it to my packages.json and then tried adding a prestart script (mentioned here):
This didn’t work (doesn’t seem to get executed). I’m guessing it might be because you don’t use
npm start to start the project but this is just a guess, I’m not all that familiar with node/npm/etc.
Is it possible for me to do this? And am I allowed? I’m not sure how sandboxed this is and whether executing arbitrary commands is intended to be supported.