You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/common_options.md
+22Lines changed: 22 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,6 +15,28 @@ You should use `camelCase` key names. For example, if you want to set `--output-
15
15
}
16
16
```
17
17
18
+
## Parser Options
19
+
20
+
### `--follow-relative-references`
21
+
22
+
Follow and parse relative imports and file references.
23
+
24
+
If this option is enabled, ts2ocaml tries to find relative `import` statements or `/// <referench path="...">` directives, and add the referenced files to the input files. ts2ocaml repeats this until no new file is added.
25
+
26
+
> ts2ocaml will not follow package `import` statements and `/// <reference types="...">` directives.
27
+
28
+
## Output Options
29
+
30
+
### `--merge`
31
+
32
+
Merge multiple input definition files to one binding.
33
+
34
+
By default, ts2ocaml generates multiple bindings if multiple inputs are given.
35
+
36
+
If this option is enabled, ts2ocaml bundles all the input files and generates one single binding.
37
+
38
+
> This option may break relative imports. Use it with care.
0 commit comments