{
  "id": "tsx",
  "name": "tsx",
  "description": "Node.js enhanced to run TypeScript and ESM files.",
  "homepage": "https://tsx.is",
  "executables": [
    "tsx"
  ],
  "commands": {
    "format": 1,
    "label": "Run TypeScript",
    "description": "Run a TypeScript file with tsx. Watch mode lives in its own form.",
    "quality": "ai-draft",
    "base": "fig:tsx",
    "parser": {
      "end_of_options": "--",
      "interleave": "permute",
      "long_equals": false,
      "short_attached": true,
      "short_bundles": false
    },
    "source": [
      {
        "id": "fig",
        "kind": "completion",
        "url": "https://github.com/withfig/autocomplete/blob/master/src/tsx.ts",
        "license": "MIT"
      }
    ],
    "field": [
      {
        "id": "script",
        "label": "Script",
        "type": "path",
        "position": 0,
        "path": {
          "kind": "file",
          "role": "input"
        },
        "sources": [
          "fig"
        ]
      },
      {
        "id": "tsconfig",
        "label": "tsconfig.json path",
        "type": "path",
        "option": [
          "--tsconfig"
        ],
        "path": {
          "kind": "file",
          "role": "input"
        },
        "sources": [
          "fig"
        ]
      },
      {
        "id": "no_cache",
        "label": "Disable cache",
        "type": "boolean",
        "option": [
          "--no-cache"
        ],
        "sources": [
          "fig"
        ]
      }
    ],
    "task": [
      {
        "id": "run",
        "label": "Run script",
        "fields": [
          "script",
          "tsconfig",
          "no_cache"
        ],
        "required": [
          "script"
        ]
      }
    ],
    "group": [
      {
        "id": "basic",
        "label": "Basic",
        "fields": [
          "script"
        ]
      },
      {
        "id": "advanced",
        "label": "Advanced",
        "fields": [
          "tsconfig",
          "no_cache"
        ]
      }
    ],
    "subcommand": [
      {
        "path": [
          "watch"
        ],
        "label": "Run and watch",
        "description": "Rerun the script when its imports change.",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/tsx.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "script",
            "label": "Script",
            "type": "path",
            "position": 0,
            "path": {
              "kind": "file",
              "role": "input"
            },
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "watch",
            "label": "Watch script",
            "fields": [
              "script"
            ],
            "required": [
              "script"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "script"
            ]
          }
        ]
      }
    ]
  }
}
