Skip to content

Commit 62b78a0

Browse files
committed
Sync open source content 🐝 (from cd61f360ea8c750230272bd3e77a5c9e9324a990)
1 parent f6232de commit 62b78a0

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

docs/speakeasy-reference/generation/ts-config.mdx

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -379,6 +379,33 @@ typescript:
379379
]}
380380
/>
381381

382+
## Build toolchain
383+
384+
These options update the TypeScript SDK build toolchain to use faster, modern build tools. Enabling both options can speed up generation time by up to 35% in GitHub Actions and locally.
385+
386+
```yml
387+
typescript:
388+
useOxlint: true
389+
useTsgo: true
390+
```
391+
392+
<Table
393+
data={[
394+
{ property: "useOxlint", description: "Replace [ESLint](https://eslint.org/) with [OxLint](https://oxc.rs/docs/guide/usage/linter), a Rust-based linter that is 50-100x faster. When enabled, the generated SDK uses OxLint for linting instead of ESLint, significantly reducing lint times in CI and local development.", type: "boolean", default: "false" },
395+
{ property: "useTsgo", description: "Replace the standard TypeScript compiler (`tsc`) with [TSGo](https://github.com/microsoft/typescript-go), Microsoft's native Go-based TypeScript compiler. When enabled, the generated SDK uses TSGo for type checking and compilation, delivering up to 10x faster build times with lower memory usage.", type: "boolean", default: "false" }
396+
]}
397+
columns={[
398+
{ key: "property", header: "Property" },
399+
{ key: "description", header: "Description" },
400+
{ key: "type", header: "Type" },
401+
{ key: "default", header: "Default" }
402+
]}
403+
/>
404+
405+
<Callout title="Generation speed optimization" type="info">
406+
For fastest generation times, enable both `useOxlint` and `useTsgo` together. [OxLint](https://oxc.rs/docs/guide/usage/linter) replaces ESLint with a Rust-based linter that processes files in parallel, while [TSGo](https://github.com/microsoft/typescript-go) replaces `tsc` with a native Go compiler that delivers up to 10x faster type checking. Combined, these tools can reduce SDK generation time by up to 35%.
407+
</Callout>
408+
382409
## Advanced features
383410

384411
```yml

0 commit comments

Comments
 (0)