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: README.md
+9-1Lines changed: 9 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -91,11 +91,19 @@ Resolve external types used in `.d.ts` files from `node_modules`.
91
91
> [!NOTE]
92
92
> These options are only applicable when `oxc` and `tsgo` are not enabled.
93
93
94
+
#### `build`
95
+
96
+
Build mode for the TypeScript compiler:
97
+
98
+
- If `true`, the plugin will use [`tsc -b`](https://www.typescriptlang.org/docs/handbook/project-references.html#build-mode-for-typescript) to build the project and all referenced projects before emitting `.d.ts` files.
99
+
- If `false`, the plugin will use [`tsc`](https://www.typescriptlang.org/docs/handbook/compiler-options.html) to emit `.d.ts` files without building referenced projects.
100
+
101
+
**Default:**`false`
102
+
94
103
#### `incremental`
95
104
96
105
Controls how project references and incremental builds are handled:
97
106
98
-
- If your `tsconfig.json` uses [`references`](https://www.typescriptlang.org/tsconfig/#references), the plugin will use [`tsc -b`](https://www.typescriptlang.org/docs/handbook/project-references.html#build-mode-for-typescript) to build the project and all referenced projects before emitting `.d.ts` files.
99
107
- If `incremental` is `true`, all built files (including [`.tsbuildinfo`](https://www.typescriptlang.org/tsconfig/#tsBuildInfoFile)) will be written to disk, similar to running `tsc -b` in your project.
100
108
- If `incremental` is `false`, built files are kept in memory, minimizing disk usage.
* If `true`, the plugin will generate declaration maps (`.d.ts.map`) for `.d.ts` files.
58
+
*/
59
+
sourcemap?: boolean
60
+
61
+
/**
62
+
* Resolve external types used in `.d.ts` files from `node_modules`.
63
+
*/
64
+
resolve?: boolean|(string|RegExp)[]
65
+
}
66
+
67
+
//#region tsc Options
68
+
exportinterfaceTscOptions{
69
+
/**
70
+
* Build mode for the TypeScript compiler:
71
+
*
72
+
* - If `true`, the plugin will use [`tsc -b`](https://www.typescriptlang.org/docs/handbook/project-references.html#build-mode-for-typescript) to build the project and all referenced projects before emitting `.d.ts` files.
73
+
* - If `false`, the plugin will use [`tsc`](https://www.typescriptlang.org/docs/handbook/compiler-options.html) to emit `.d.ts` files without building referenced projects.
0 commit comments