-
-
Notifications
You must be signed in to change notification settings - Fork 44
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).

- By using a
.solution.tomlfile, you can pass custom arguments totscif you want. - We don't recommend you to have a
tsconfig.jsonfile in your project directory if you are gonna use thebuild solutionoption (it's redundant). - But if you have to, make sure you set
arguments = "". The reason is the arguments defined in.solution.tomlprevail over the ones defined intsconfig.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/"