I've created a new node.js-app. In that app I'm using jsx-scripts that are located inside of the script-folder. The paths to the jsx-scripts are set to fixed paths inside of the TypeScript-code. I want to keep them dynamic though. How can I get to that root-directory in my TypeScript-code?
Using
gives me the temporary script executor path ("/Applications/Enfocus/Enfocus Switch/ScriptExecutor/libs") which is of course not usable for my case since I need the original directory of the main.ts