-
-
Notifications
You must be signed in to change notification settings - Fork 38
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.toml
file, you can pass custom arguments totsc
if you want. - We don't recommend you having a
tsconfig.json
file in your working directory if you are gonna use thebuild 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 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/"