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

Defined in: [src/config/types.ts:118](https://github.com/rolldown/tsdown/blob/9f98be3c9c6627ed1c4e5bdec3d8a18e5463c4c8/src/config/types.ts#L118)

## Properties

### config?

```ts
optional config?: string | boolean;
```

Defined in: [src/config/types.ts:140](https://github.com/rolldown/tsdown/blob/9f98be3c9c6627ed1c4e5bdec3d8a18e5463c4c8/src/config/types.ts#L140)

Path to the workspace configuration file.

***

### exclude?

```ts
optional exclude?: Arrayable<string>;
```

Defined in: [src/config/types.ts:135](https://github.com/rolldown/tsdown/blob/9f98be3c9c6627ed1c4e5bdec3d8a18e5463c4c8/src/config/types.ts#L135)

Exclude directories from workspace.
Defaults to all `node_modules`, `dist`, `test`, `tests`, `temp`, and `tmp` directories.

#### Default

```ts
;['**/node_modules/**', '**/dist/**', '**/test?(s)/**', '**/t?(e)mp/**']
```

***

### include?

```ts
optional include?: string[] | string & object | "auto";
```

Defined in: [src/config/types.ts:128](https://github.com/rolldown/tsdown/blob/9f98be3c9c6627ed1c4e5bdec3d8a18e5463c4c8/src/config/types.ts#L128)

Workspace directories. Glob patterns are supported.

* `auto`: Automatically detect `package.json` files in the workspace.

Matched directories that contain neither a `package.json` nor a
`tsdown.config.*` file are skipped. Set [Workspace.config](#config) to an
explicit file path to keep every matched directory.

#### Default

```ts
'auto'
```
