> ## Documentation Index
> Fetch the complete documentation index at: https://docs.agentfront.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Build Exec Executor

> Build a distributable bundle using frontmcp build --exec

Builds a distributable executable bundle using esbuild. Produces a single-file output ideal for containerized deployments.

## Usage

```bash theme={"theme":{"light":"snazzy-light","dark":"dark-plus"}}
nx build-exec my-app
```

## Configuration

```json project.json theme={"theme":{"light":"snazzy-light","dark":"dark-plus"}}
{
  "targets": {
    "build-exec": {
      "executor": "@frontmcp/nx:build-exec",
      "outputs": ["{projectRoot}/dist"],
      "options": {
        "entry": "{projectRoot}/src/main.ts",
        "outputPath": "{projectRoot}/dist"
      }
    }
  }
}
```

## Options

| Option       | Type     | Description           |
| ------------ | -------- | --------------------- |
| `entry`      | `string` | Entry file path       |
| `outputPath` | `string` | Output directory path |

## Caching

This executor is **cacheable**. The bundled output is deterministic given the same inputs.
