---
url: /reference/api/Interface.ExeOptions.md
---
# Interface: ExeOptions

Defined in: [src/features/exe.ts:25](https://github.com/rolldown/tsdown/blob/eb40c95efdf7f98d0aa7b0178a3b7322986bd419/src/features/exe.ts#L25)

## Extends

* `ExeExtensionOptions`

## Properties

### fileName?

```ts
optional fileName?: string | ((chunk) => string);
```

Defined in: [src/features/exe.ts:31](https://github.com/rolldown/tsdown/blob/eb40c95efdf7f98d0aa7b0178a3b7322986bd419/src/features/exe.ts#L31)

Output file name without any suffix or extension.
For example, do not include `.exe`, platform suffixes, or architecture suffixes.

***

### getDownloadUrl?

```ts
optional getDownloadUrl?: (target) => string | Promise<string>;
```

Defined in: [packages/exe/src/platform.ts:48](https://github.com/rolldown/tsdown/blob/eb40c95efdf7f98d0aa7b0178a3b7322986bd419/packages/exe/src/platform.ts#L48)

Customize the download URL for Node.js binaries, e.g. to use a mirror.
Defaults to downloading from <https://nodejs.org/dist/>.

#### Parameters

##### target

`ExeTarget`

#### Returns

`string` | `Promise`<`string`>

#### Inherited from

```ts
ExeExtensionOptions.getDownloadUrl
```

***

### nodeDistIndexUrl?

```ts
optional nodeDistIndexUrl?: string;
```

Defined in: [packages/exe/src/platform.ts:55](https://github.com/rolldown/tsdown/blob/eb40c95efdf7f98d0aa7b0178a3b7322986bd419/packages/exe/src/platform.ts#L55)

URL of the Node.js release index used to resolve the `latest` and
`latest-lts` versions.

#### Default

```ts
'https://nodejs.org/dist/index.json'
```

#### Inherited from

```ts
ExeExtensionOptions.nodeDistIndexUrl
```

***

### outDir?

```ts
optional outDir?: string;
```

Defined in: [src/features/exe.ts:36](https://github.com/rolldown/tsdown/blob/eb40c95efdf7f98d0aa7b0178a3b7322986bd419/src/features/exe.ts#L36)

Output directory for executables.

#### Default

```ts
'build'
```

***

### seaConfig?

```ts
optional seaConfig?: Omit<SeaConfig, "main" | "output" | "mainFormat">;
```

Defined in: [src/features/exe.ts:26](https://github.com/rolldown/tsdown/blob/eb40c95efdf7f98d0aa7b0178a3b7322986bd419/src/features/exe.ts#L26)

***

### targets?

```ts
optional targets?: ExeTarget[];
```

Defined in: [packages/exe/src/platform.ts:42](https://github.com/rolldown/tsdown/blob/eb40c95efdf7f98d0aa7b0178a3b7322986bd419/packages/exe/src/platform.ts#L42)

Cross-platform targets for building executables.
Requires `@tsdown/exe` to be installed.
When specified, builds an executable for each target platform/arch combination.

#### Example

```ts
targets: [
  { platform: 'linux', arch: 'x64', nodeVersion: '25.7.0' },
  { platform: 'darwin', arch: 'arm64', nodeVersion: '25.7.0' },
  { platform: 'win', arch: 'x64', nodeVersion: '25.7.0' },
]
```

#### Inherited from

```ts
ExeExtensionOptions.targets
```
