Skip to main content
Compiles a FrontMCP project using TypeScript (tsc). Supports deployment adapters for platform-specific output.

Usage

nx build my-app

Configuration

project.json
{
  "targets": {
    "build": {
      "executor": "@frontmcp/nx:build",
      "outputs": ["{projectRoot}/dist"],
      "options": {
        "entry": "{projectRoot}/src/main.ts",
        "outputPath": "{projectRoot}/dist"
      }
    }
  }
}

Options

OptionTypeDescription
entrystringEntry file path
outputPathstringOutput directory path
adapternode | vercel | lambda | cloudflareDeployment adapter

Caching

This executor is cacheable. Nx will skip the build if inputs haven’t changed.
nx.json
{
  "targetDefaults": {
    "build": {
      "cache": true,
      "dependsOn": ["^build"],
      "inputs": ["production", "^production"]
    }
  }
}