Skip to content

typescript transpiler

Zeioth edited this page Aug 30, 2023 · 17 revisions

The typescript transpiler convert your code to javascript using tsc and then it run it with node. This can be used to develop standalone typescript applications (which doesn't mean you should, but some times it's useful).

screenshot_2023-08-30_14-24-58_986996926

Considerations when using build solution

  • By using a .solution.toml file, you can pass custom arguments to tsc if you want.
  • We don't recommend you to have a tsconfig.json file in your project directory if you are gonna use the build solution option (it's redundant).
  • But if you have to, make sure you set arguments = "". The reason is the arguments defined in .solution.toml prevail over the ones defined in tsconfig.json.

Aditionally, if you are gonna overwrite the default arguments, it is mandatory you set --outDir, or the transpiler will fail.

[proj1]
entry_point = "./project1/src/main.ts"
output = "./project1/dist/"
arguments = "--outDir ./project1/dist/"