Takomo supports custom configuration written in TypeScript. By default, it looks for a takomo.ts
file in the project root. If found, this file is compiled using esbuild and executed to apply any customizations.
You can control this behavior through the esbuild
property in your takomo.yml
file:
Property | Description | Required | Default |
---|---|---|---|
enabled |
Enable or disable esbuild and TypeScript support | No | true |
outFile |
Output path for the compiled TypeScript file | No | .takomo/out/takomo.mjs |
entryPoint |
Entry file to compile with esbuild | No | takomo.ts |
Use a custom entry point:
Disable TypeScript support:
The entry point file (typically takomo.ts
) must export a default function of type TakomoConfigProvider.
This function returns a TakomoConfig object containing your project's custom configuration.